can a static method be overridden
Answer Posted / mohit kaushik
yes main method can be override example
class mad
{
public static void main(String args[])
{}
}
public class mohit extends
{
public static void main(String args[])
{
System.out.println("HELLO");
}}
output HELLO
ANY question contact me with our email.my id.
mohit_kaushik1234@rediff.com
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
How database connectivity in XML is achieved?
which book is better for jdbc ,servlets and jsp
Is jvm a overhead?
Name three subclasses of the component class?
What’s jboss jbpm?
What is the difference between long.class and long.type?
What are the diff types of exception?
What is the relationship between the canvas class and the graphics class?
What is the difference between a static and a non-static inner class?
Why a component architecture for the java platform?
What is clustering? What are the different algorithms used for clustering?
What if the static modifier is removed from the signature of the main method?
What do you need to set-up a cluster with jboss?
What is the difference between the session.get() method and the session.load() method?
If I wanted to use a solarisui for just a jtabbedpane, and the metal ui for everything else, how would I do that?