-
Which one do you prefer between methods of loading and registering a driver ..?
we have got two methods of loading and registering a driver. i would like to know which one could be preferable class.forName(sun.jdbc.odbc.JdbcOdbcDriver) or Driver d= new Driver(sun.jdbc.odbc.JdbcOdbcDriver) Driver Manager.register Driver(d) ?
-
-
-
-
-
-
-
-
Why statement a = a++; gives different output in C++ and java ?
Because C++ solve postfix ++,-- after assignment (=) operator.
-
Why statement printf("%d%d%d",++a,a,a++) in C and = a++; System.out.printf("%d%d%d",++a,a,a++) in Java gives different output?
Because in C++ function argument associativity is right to left but in java it is left to right
-
-
-
-
-
Path and classpath
What is the main difference between path and classpath in java language?
-
-
What is the default Transaction(Txa) Attribute in
1)SessionBean 2)EntityBean 3)MessageDriven Bean
-
-
-
Which of the following are valid types of COM servers
A: In-process B: Local and remote C: All of the above D: None of the above
Core Java Interview Questions
Ans