What happens when a main method is declared as private?

Answer Posted / vani

Nothing Happen.
Code compiles properly and executes properly.

Is This Answer Correct ?    5 Yes 76 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when to use ArrayList and when to use HashMap in webApplication.

3881


What is difference between final and finally in java?

580


Does treeset use compareto?

536


Is set ordered in java?

568


4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (

1406






How do you sort words in java?

530


What does flagged out mean?

566


What is the difference between JDK and JVM?

629


What is one third plus one third as a fraction?

483


What do you mean by default constructor in java?

574


Explain the transient field modifier?

560


What does three dots mean in java?

643


How to pass arraylist to stored procedure in java?

541


What is meant by polymorphism?

532


Do we have pointers in java?

524