| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| transaction attributes ? | | 2 |
| 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 |
| define System.out.println(); what is the meaning! | | 8 |
| Differentiate constructor and a method and how are it be
used? | Wipro | 5 |
| we know that every java prog must follows OOPS Principles.
Anybody can answer, HOW THE FOLLOWING PROGRAM FOLLOWS OOPS
CONCEPTS i.e, Inheritance,Polymarphism,Encapsulation?
class a{
public static void main(String args[]){
System.out.println("Hello World");
}
}
| | 3 |
| what is a transient variable? | | 4 |
| If two threads call a static method at the same point of
time, what will happen? | KPIT | 1 |
| What classes can be used to store arbitrary number of
objects ? | | 1 |
| Hi friends, i am new to java. can you explain how java is
secured. | | 1 |
| How can you eliminate duplicates? | | 1 |
| y cant i declare method like public final static show() | | 2 |
| How many times garbage collector will invoke an object?s
finalize() method? | | 4 |
| Explain the difference between getAppletInfo and
getParameterInfo? | | 1 |
| Marker interface means , interface which has no methods.Then
what is the necessity of its usage.I read "it tells the
compiler that it should be treated differently ". "It is
used to store state of an object". But still am not
clear.Please explain clearly. | | 1 |
| what is j2se | | 3 |
| what is mean by method signature? | Satyam | 6 |
| How multi processing is achieved in JAVA? | BMC | 4 |
| What are other modifiers? | Wipro | 1 |
| Which class has no duplicate elements? | | 8 |
| what is dynamic method dispatch ? | Fidelity | 11 |
| |
| For more Core Java Interview Questions Click Here |