Originally posted by john guthrie:
we just started using the jakarta-commons object pool for JDBC connection pooling, and plan to do the same for threads. it's just an object pooler, but so far it seems nice and lightweight.
Originally posted by Rob Petterson:
Therefore it will be legal at compile time....but NOT at runtime??
Is that right?
Originally posted by Rob Petterson:
class B extends A {
A a1 = new B();
b b1 = new B();
b1 = (B)a1;
}
Will the above code always compile but sometimes not run?
Also, can someone explain what 'casting down the tree means'. Is it the above?
-write() method of InputStream.
Originally posted by Tosin Adedoyin:
class Mock
{
public static void main(String args[]) {
StringBuffer sb1 = new StringBuffer("Amit");
StringBuffer sb2= new StringBuffer("Amit");
String ss1 = "Amit";
System.out.println(sb1==sb2);
System.out.println(sb1.equals(sb2)); // line 2
System.out.println(sb1.equals(ss1));
System.out.println("Poddar".substring(3));
}
}
why does line 2 print false instead of True
Originally posted by Corey McGlone:
Notice, however, that the fact that the method invocation is ambiguous is dependent upon the fact that the test method is overridden in class Sub. Try commenting out that overriding method and see what happens.
Corey
Using println on a null object will never cause a null because the println method checks to see if the object is null before it runs the objects toString() method
Originally posted by Abdul Latif:
hi guys i have completed my programming certification but still out of job.I think so the programming level is only the first step.i am planning for exploring java in depth like going for enterprise java bean, the developer exam, & then for java arcitechure please anyone who has knowledge about these plaese help me out & then please frankly say is there it worth doing java in depth because people say java is now no more plaese help me