| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| where do we use init() | | 2 |
| what is ejb? what is the importance of ejb? | Photon | 1 |
| 11. static class A {
12. void process() throws Exception { throw new Exception();
}
13. }
14. static class B extends A {
15. void process() { System.out.println(”B”); }
16. }
17. public static void main(String[] args) {
18. new B().process();
19. }
What is the result?
1 B
2 The code runs with no output.
3 Compilation fails because of an error in
line 12.
4 Compilation fails because of an error in
line 15. | | 1 |
| What is meant by class loader and how many types are there? | Apple | 1 |
| what is an object and how do you allocate memory to it? | Wipro | 3 |
| How applets will communicate with each other? | | 1 |
| what is difference between abstract and interface?
can i give real time example for the two topics? | | 6 |
| how to call a method in different package? | | 4 |
| what is overloading in java? | DNS | 4 |
| How many objects are created for a singleton class | Ness-Technologies | 4 |
| is java support call by reference and call by value, if
supports please explain? | | 3 |
| what is Dictionary? and what purpose it is used for? | | 2 |
| Can we declare static variables in JSP page. | TCS | 3 |
| What is the difference between Resultset and Rowset. | IBM | 5 |
| What is the difference between throw and throws? | Cap-Gemini | 2 |
| How are this and super used? | | 6 |
| What is the % operator? | | 2 |
| how can you retrive information from database by using
hashmap/arraylist ,plz explain with example briefly? | Satyam | 1 |
| What is casting ? | | 2 |
| What is meant by JVM ? | | 3 |
| |
| For more Core Java Interview Questions Click Here |