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
When should the method invokelater() be used?
What are keywords and reserved words in java?
What is a website container?
What is the string function?
What is method in java ?
What are the wrapped, classes?
How is hashset defined in java?
What does it mean to flush a file?
What is meant by stack and queue?
What is the use of arrays tostring () in java?
What is meant by interface?
How does thread synchronization occurs inside a monitor?
What is the use of a conditional inclusion statement in Java ?
How do you declare an array that will hold more than 64KB of data?
Can we use string in the switch case?