| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 84. try {
85. ResourceConnection con =
resourceFactory.getConnection();
86. Results r = con.query(”GET INFO FROM CUSTOMER”);
87. info = r.getData();
88. con.close();
89. } catch (ResourceException re) {
90. errorLog.write(re.getMessage());
91. }
92. return info;
Which is true if a ResourceException is thrown on line 86?
1 Line 92 will not execute.
2 The connection will not be retrieved in line
85.
3 The resource connection will not be closed
on line 88.
4 The enclosing method will throw an exception
to its caller.
| | 1 |
| 1).Is Object class abstract or not?
2).Is main method(public static void main(String args[])low
priority thread or high priority thread?
| TCS | 2 |
| What is the difference between abstract class and interface? | | 2 |
| what is the difference between equals method and == | Professional-Access | 11 |
| What Method and class used for Connection pooling ? | Wipro | 4 |
| What is the difference between serialization and
deserialization? | ABC | 2 |
| What is the need to implement Serializable interface (with
no methods) for objects which are to be serialized ?
We can write our own functionality which writes objects to
streams then why we need to implement and tell JVM that
which objects can be serialized. | iFlex | 4 |
| what is auto boxing | UHG | 1 |
| What is meant by final class, methods and variables? | | 2 |
| What is data abstraction? Elaborate with example? | BMC | 3 |
| What is the use of bin and lib in JDK? | | 3 |
| Nullpointer exception is a very common exception. Why is it
not made as a checked exception? | Ness-Technologies | 1 |
| what is webservices? | CTS | 1 |
| what is difference between servletconfig and servletcontext? | AMDOC | 3 |
| Life Cycle of Thread | IBM | 3 |
| What is "Java Native Interface" and how to use it? | IBM | 1 |
| How can we find size of the object ? | RazorSight | 1 |
| what is Vector class? | | 2 |
| what is difference between validation.xml & validation
rules.xml? | BirlaSoft | 5 |
| how cani read a command line argument?(usingfile object). | | 3 |
| |
| For more Core Java Interview Questions Click Here |