Latest Answer : Thisb java.lang.reflect package is uesd retrieve the member info for any loaded class.for example,Class c=Class.forName("java.lang.String");Method m[]=c.getDeclaredMethods();now m contains all declared method for String classhere String is loaded class.this ...
Latest Answer : Methods cannot be overloaded only on the basis of return type atleast one argument should be different, otherwise compiler will give the message "The function is already defined in the class". ...
Latest Answer : Apart from init,start,stop and destroy the Applet class has the following methods:1. public void paint(Graphics)2. public void repaint3. public void update(Graphics)4. public void showStatus(String)5. public String getParameter(String) ...
Latest Answer : yes, we can communicate between 2 applets by using its appletContext() methods. ...
Latest Answer : final class cannot be subcassed ...
Using Java Reflection how can i call a method which i specify in a JSP page.i mean if i have 3 methods in my java class when i specify one of my method name in Jsp page in a textbox when i submit the page that particular method has to be called using java Reflection
Latest Answer : In Java Programming, Interfaces with no methods is called as Marker Interface. Marker Interfaces are implemented by the classes or their SUper class in order to do some functions. Marker interface are Serializable, clonable, Single Threaded Model, Event ...
If two overloaded methods are-test(Object xyz) and test(Customer cust)[Assume Customer is a class with member name of type String].Now if we call test(null), which method will be called? why?
test(Customer cust) will be called.