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 array synchronized in java?
What is a boolean flag in java?
What is the purpose of interface?
What is boolean in java?
What are the advantages of java over cpp?
What is a boolean in java?
What is the difference between static (class) method and instance method?
Does substring create a new object?
What is the default value of local and global variables?
Why do you canvas?
Does java support Operator Overloading?
How many ways can an argument be passed to a subroutine and explain them?
What is the default size of load factor in hashing based collection?
What is the private method modifier?
What is the difference between a method and a procedure?