What is super keyword explain with example?
No Answer is Posted For this Question
Be the First to Post Answer
why using interface interface ?
Difference between arraylist and hashset in java?
What is thread life cycle?
What is java thread dump, how can we get java thread dump of a program?
I want to re-reach and use an object once it has been garbage collected. Define how it’s possible?
If all the methods in abstract class are declared as abstract then what is difference between abstract class and in interface?
What is OOPs & Why?
What is the base class of all exception classes?
what is Assertion?
What is Major and importance difference between for and foreach loop ?
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.
Why do we declare a class static?