what are the methods in object?
Answer / Priyanshu Varshney
In Java, Object class has more than 30 methods such as equals(), toString(), hashCode(), notify(), wait(), and finalize(). However, some of these methods may be overridden in child classes.
| Is This Answer Correct ? | 0 Yes | 0 No |
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.
What is the benefit of singleton pattern?
Does java map allow duplicates?
Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding .........
what is ststic with example
What are the 3 types of control structures?
when should you use stringbuilder class in a program?
How hashset works internally in java?
how do I create a runnable with inheritance? : Java thread
can we add two numbers without using arthematic operators? if possible how?
Does every java program need a main?
What are the traverses in Binary Tree?