What does it mean that a class or member is final?
How can you set an applet’s height and width as a percentage?
Which class is extended by all other classes?
What kind of variables can a class consist?
Can you create an object of an abstract class?
What exactly is methodology?
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.
This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .
Can we create a class inside a class in java?
What is the difference between a method and a procedure?
What is the difference between throw and throws?
What is the difference in between cpp and java? Can u explain in detail?
Why java is used everywhere?