| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| we have two threads..both the threads are reading the
data.. is there any need of synchronization
there?...justify it? | IBM | 4 |
| 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 |
| explain the life cycle of thread? | CTS | 5 |
| why the wait,notify,notifyall methods are placed in object
class?these are the thread concepts why these methods are
placed in Object class? | Satyam | 2 |
| what is the JNDI? | | 3 |
| What is finally in exception handling? | | 6 |
| if arraylist size is increased from initial size what is
the size of arraylist...suppose initial is 100 , if i add
101 element what is the size... | | 6 |
| What are the operands of instanceof operator? | | 2 |
| basic difference b/w ALL types of JDBC driver. | Systematix | 1 |
| Difference between Web-based applications,Client-
Server applications and Distributed applications? | Infosys | 2 |
| Can you call a private data from an inner class? | | 3 |
| What is yielding and sleeping? how they different? | | 2 |
| why the equals method can be override?when we override the
equals method? | | 4 |
| What is the top class of AWT event hierarchy? | | 5 |
| what is jms? features of jms | CTS | 1 |
| Have you used any version control ? if so explain about it? | | 1 |
| what are the oops concept in java explain with real time
examples | Tech-Mahindra | 4 |
| what is difference betwwen hashmap and hashtable ? | Fidelity | 6 |
| By what default value is an object reference declared as an
instance variable? | Wipro | 1 |
| what are depricated methods in threads and explain the
lifecycle methods | | 5 |
| |
| For more Core Java Interview Questions Click Here |