Why method overloading and method overriding required in java?
Answer / sonu
function overloading is used to achieve dynamic binding, and overriding is used to achieve run time polymorphism , dynamic binding .
| Is This Answer Correct ? | 0 Yes | 3 No |
Difference between JVM and JRE?
how an we achive multiple inhetitance in java using interface..??
public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }
What is the maximum size of array in java?
Should a main method be compulsorily declared in all java classes?
What do you mean by thread safe?
Do you know why doesn't the java library use a randomized version of quicksort?
How does compareto method work?
Explain notifyall() method of object class ?
What is difference between static variable and global variable?
What is a thin-client application?
What are the disadvantages of object oriented programming?