why in java first invoke public static void main(String args[])
method????Why not public static void method1(String args[])??

Answer Posted / amit

Becuase the main(String args[]) need not to call by user it
will be call automatically And method1(String args[]) need to
call user.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between abstraction and encapsulation?

592


Why do we use class?

633


What is difference between oop and pop?

613


What is class and example?

567


What is for loop and its syntax?

596






What is basic concept of oop?

698


Why do we use oop?

604


Which method cannot be overridden?

578


What is the real time example of inheritance?

639


What is constructor overloading in oop?

605


Can an interface inherit a class?

557


What is pointer in oop?

535


Why do we use polymorphism in oops?

577


What is abstraction in oops?

585


What is the real life example of polymorphism?

605