| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| what is Portal(web based online portal)? | AIG | 1 |
| basic difference b/w ALL types of JDBC driver. | Systematix | 1 |
| what is the Use of throws exception? | | 2 |
| can you program for reverse string? | IBM | 5 |
| How to create an instance of a class if the class has
private constructor? | | 2 |
| Can an unreachable object become reachable again? | | 3 |
| whst is encapsulation?when u encpsulate actually while
devoloping code? | AMDOC | 5 |
| primitive data types in Java ? | | 3 |
| What is CardLayout? | Infosys | 1 |
| Default layout of panel and frame? | | 2 |
| Hi Friends, Can u give few interview questions which relates
ArrayList and Hashmap. I mean how to link ArrayList and
HashMap.I know this is not good way of asking questions like
this , but i need | Microsoft | 1 |
| how can u apply shallow cloning and deep cloning to create
object? | Yash-Technologies | 1 |
| Why are the methods of the Math class are static? | | 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 |
| Can a for statement loop indefinitely? | | 3 |
| Explain Public static void main? | | 2 |
| String is an immutable object.
Then how can the following code be justified.
String s1 = ?ABC?;
String s1 = s1+?XYZ?;
s.o.p(s1);
The output is ABCXYZ, which is the value of s1 ?
| Flextronics | 5 |
| string is immutable? right every one knows that, my
question is it advantage or disadvantage making string
immutable? | HCL | 4 |
| what is ejb? what is the importance of ejb? | Photon | 1 |
| |
| For more Core Java Interview Questions Click Here |