| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is Collection interface? | Zensar | 1 |
| Hey buddy.. can you please tell me about the use of marker
interface? And is there any link between marker interface
and factory methods?
Thanks in advance. | | 2 |
| What is the purpose of the finally clause? | | 3 |
| what is multitherading | Tech-Mahindra | 2 |
| What is compile time polymorphism? | Elementus-Technologies | 6 |
| what is a static block? | | 4 |
| what is struts-config-xml?and its use? | | 3 |
| What is the difference between serialization and
deserialization? | ABC | 2 |
| What is inheritance? | | 4 |
| Can we declare static variables in JSP page. | TCS | 3 |
| why String class is immutable. | iGate | 3 |
| What is Runtime class and its purpose? | | 2 |
| Difference between this(), super()? | | 8 |
| byte a=5;
byte b=5;
byte c=a+b;
System.out.println(c);
whats the o/p? | Wipro | 5 |
| What is the use of Getters and Setters method ? | | 2 |
| What are the steps to do connection pooling in weblogic? | TCS | 1 |
| Functionality of JVM? | Infosys | 4 |
| How to access a variable if it is declared as private? | | 2 |
| Does garbage collection guarantee that a program will not
run out of memory? | | 1 |
|
33. try {
34. // some code here
35. } catch (NullPointerException e1) {
36. System.out.print(”a”);
37. } catch (RuntimeException e2) {
38. System.out.print(”b”);
39. } finally {
40. System.out.print(”c”);
41. }
What is the result if a NullPointerException occurs on line
34?
1 c
2 a
3 ab
4 ac
| | 1 |
| |
| For more Core Java Interview Questions Click Here |