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
What is the relationship between the canvas class and the graphics class?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
Explain the advantages and disadvantages of detached objects.
Why does the tag url-encode javascript and mailto links?
What is the RMI and Socket?
What is the difference between system.out ,system.err and system.in?
What is colon_pkg_prefixes and what is its use?
To identify IDL language what mapping mechanism is used?
Are enterprise beans allowed to use thread.sleep()?
What is the difference between the session.get() method and the session.load() method?
What class is the top of the awt event hierarchy?
What are the services in RMI ?
Explain ioc concept?
What do you need to set-up a cluster with jboss?
What is a tasks priority and how is it used in scheduling?