![]() Related Questions Will there be a performance penalty if you make a method synchronized? If so, can you make any design changes to improve the performance Latest Answer : yes a method can be static and synchronized ... When you have an object passed to a method and when the object is reassigned to a different one, then is the original reference lost Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program? It is a saying that static methods in JAVA programs should be minimised. What is the reason for this? any problems arise or there is any performance measures to be looked into it. Latest Answer : if we declare const as pvt thn can use in other class ... Latest Answer : No a Class, Method cannot be Garbage collected simply because a class or Method does not have physical exestence in memory and garbage collector is only used for freeing up the memory which only applies to objects not classes or methods.So only objects ... Read Answers (5) | Asked by : chandu Latest Answer : Private protected methods can be overloaded and overrided. But while overrding method following rules must be satisfied We can not narrow the accessibility but can be widen. Means if the access specifier is suppose protected then you can keep it protected ... Read Answers (2) | Asked by : chandu I need some more information about interface. For Example there is no any functionality inside the method which is declared in any interface. Then why i want to implement that interface to my class. 2. Statement is an interface. When i say stmt.executeQuery(). I am getting the records in my ResultSet. How it is possible?.. since there is no functionality insid the methods which is declared in Statement Interface. What is happning here? An idea What is the difference between putting a class as abstract or if any of method in class is declared as abstract diference of these two while extending these two types of classes Read Answers (1) | Asked by : karunakar Tags : Abstract
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||