| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Why do we use public static with the main function in Java? | Infosys | 7 |
| What is Vector?Can you elaborate how Vector is Thread safe? | | 3 |
| Howmany number of objects we can store in an ArrayList. Is
there any limit? | TCS | 5 |
| How multipleInheritance is possible in java? | Satyam | 16 |
| what is sendredirect? | TCS | 3 |
| what is the difference between AWT and SWING what is the
advantage of using swing? | | 3 |
| what is difference betwwen hashmap and hashtable ? | Fidelity | 6 |
| Which are thin and thicK wrapper Class's in Java? | | 1 |
| What is encapsulation? Elaborate with example? | BMC | 1 |
| What is left shift and right shift? | | 1 |
| Adapter classes? | | 3 |
| 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 |
| For which statements we use a label? | Wipro | 3 |
| What are the OOPS concepts in Java ? | Satyam | 3 |
| How many ways can an argument be passed to a subroutine? | | 2 |
| What happens if an exception is not caught? | | 4 |
| how many access specifiers are available in java | | 5 |
| Can a lock be acquired on a class? | | 2 |
| What is a native method? | | 2 |
| In what type of containers, Border layout is a default
layout? | | 3 |
| |
| For more Core Java Interview Questions Click Here |