Is there is any error if you have multiple main methods in
the same class?

Answer Posted / jhonty

this is called data hiding.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are different ways in which a thread can enter the waiting state? : Java thread

496


What will happen when using pass by reference in java?

526


What is numeric function?

543


Can static methods be inherited?

537


What is getclass () getname () in java?

683






What is regex used for?

547


How do you use parseint in java?

515


How is abstraction implemented in java ?

546


What is a subsequence of a string?

549


What is the same as procedures?

538


What are the Static and Dynamic Variables? Differentiate them.

609


Where are register variables stored?

593


What is implicit object in java?

553


How does singleton class work?

531


What is the public field modifier?

545