JavaLanguage Section Index | Page 2

For loading and registering a driver you should use Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"), but I have used JdbcOdbcDriver j=new JdbcOdbcDriver() and I still get a connection. Why is this so? Why should I use Class.forName("");

How can I format an int to contain a set amount of characters? If the set amount of characters is 6 and the int == 12345 then it should become 012345.

Please explain the differences between instanceof and isInstance(Object obj).

What is the reserved keyword transient used for?

How can I multiply two double numbers without loss of precision?

How can I represent monetary values in Java? Should I use double or float?

How do you just the @Deprecated annotation?

How do you use the @Override annotation?

What are the differences between instance methods and class methods?

How do you use the ternary operator?

java.lang.OutOfMemoryError: Java heap space What does this error mean and how can I correct it?

I have an interface that is implemented by 100 classes, if I add a method to the interface will my classes compile? How can I fix any errors?

Java doesn't allow operator overloading yet + is overloaded for class String. Is it possible to overload operators? Why doesn't Java allow operator overloading?

What is the main use of the ResourceBundle class? Can it be used instead of the Properties class? If so what are the advantages?

Can Java handle nested switch statements?

About | Sitemap | Contact