| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is a class ? | | 8 |
| what is servlet filter? | | 1 |
| Need 2+ yrs experienced java techinical question papaer for
company Iflex | | 1 |
| Given:
10. interface A { void x(); }
11. class B implements A { public void x() { } public
voidy() { } }
12. class C extends B { public void x() {} }
And:
20. java.util.List list = new java.util.ArrayList();
21. list.add(new B());
22. list.add(new C());
23. for (A a:list) {
24. a.x();
25. a.y();;
26. }
What is the result?
1 Compilation fails because of an error in
line 25.
2 The code runs with no output.
3 An exception is thrown at runtime.
4 Compilation fails because of an error in
line 20.
| | 1 |
| What is finally in exception handling? | | 6 |
| how can you retrive information from database by using
hashmap/arraylist ,plz explain with example briefly? | Satyam | 1 |
| can u give one sinario when you use Abstract Class and When
you use Interface. | ITC-Infotech | 5 |
| What is method Overriding in the perspective of OOPS? | | 2 |
| can we have function for truncating the sign as like abs in
oracle. | | 1 |
| If two threads call a static method at the same point of
time, what will happen? | KPIT | 1 |
| Explain, why the constructor is required in implemented
class? | | 2 |
| Which Java operator is right associative? | | 1 |
| What for read() function? | | 3 |
| what is the difference between a java object reference and
c++ pointer? | | 3 |
| when,where and how to use abstract class and interface | | 2 |
| What are the advantages of the model over the event-
inheritance model? | | 1 |
| Instead of writing Home, Remote Interfaces if i directly
extends EJBObject to bean class what happens?
| Flextronics | 1 |
| Life Cycle of Thread | IBM | 3 |
| What are Access Specifiers and Access Modifiers. | TCS | 4 |
| In Serialization, whether you will use Static variables? | HCL | 2 |
| |
| For more Core Java Interview Questions Click Here |