Latest Answer : Static Binding: if the binding is occur at compile time of our source code is called static bindingDynamic Binding: if the binding is occur when interpreter our class fine, then that binding is called Dynamic Binding. ...
Latest Answer : Dynamic Binding [Late Binding]:The runtime system [JVM]during runtime determines the appropriate method call based on the class of the object. This feature is called as Polymorphism. All the methods in java are dynamically resolved. ...
Class A{Public void meth(){}}class B extends A{ Public void meth(){ } public static void main(String args[]){ A a=new A(); a.meth();//which method will this call } }if u want to call a method of class B then how can u achieve this?
Latest Answer : There is only one copy of a static variable to serve all objects of the class, not one per object. It is allocated when the class is first loaded. Staic methods are class methods. All static methods are automatically final. static methods work without ...
Latest Answer : Yes.You can ...
Latest Answer : no..construtors are meant for creating objects and it is not a method but loojk likes method. 1.so u cant put final to other than method,vaRIABLE ,class. 2.if u put satitic means u r breaking the concpet of objects...wherea s constructors are ...
Latest Answer : The signature of the main method should be public static void main (String argv[])Iin your question the argument passed to main() is String object, it should always be an String array. ...
Public class A {int x; public static void main(String args[]) {x=x+1;s.o.p(x);}}what is the output? a) compile time errorb) runtime error