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.
Answer / nik
The resource connection will not be closed on line 88.
| Is This Answer Correct ? | 21 Yes | 4 No |
When can an object reference be cast to an interface reference in java programming?
Is singleton set an interval?
Explain about GridBag Layout?
How objects are stored in java?
A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet
What are static blocks and static initalizers in java ?
Explain about abstract classes in java?
What are local variables?
How can I debug the Java security exceptions and AccessControlExceptions?
What are synchronized methods ?
what is synchronization
Why can't you declare a class as protected?