Answer Posted / atul
class mainoverloaded
{
public void main()
{
System.out.println("Hey");
}
public void main(int a)
{
System.out.println(a);
}
}
class maind
{
public static void main(String ah[])
{
mainoverloaded m=new mainoverloaded();
m.main();
m.main(10);
}
}
please execute this code.it is execute correctly.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is it safe to install java on my computer?
Is empty .java file name a valid source file name?
What is meant by call by reference?
Is null a keyword in java?
What is the inheritance?
Define jre i.e. Java runtime environment?
What about features of local inner class?
What best practices should you follow while writing multithreaded code in java?
Explain an intermediate language?
How can I right-justify a string?
What does super keyword do?
What is scope & storage allocation of global and extern variables? Explain with an example
What is the escape character in java?
What is a percentage sign called?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..