What happens when a main method is declared as private?

Answer Posted / maduakor ngozi chukwukodinaka

When a method is declared as private, the program compiles
properly but it will give runtime error ?Main method not
public".

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between this() and super() in java ?

604


Is java developer a good career?

540


What are kinds of processors?

555


Which collection is best for sorting in java?

685


What is split return?

486






Which methods are used during serialization and deserialization process?

542


What is e in java?

532


Does java trim remove newline?

530


What is == and === in javascript?

550


What’s the difference between applets and standalone program?

522


whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

1649


Which class contains a method: cloneable or object?

529


What is data object example?

522


Explain about the dynamic behavior of core java?

624


Why multiple inheritance is not supported by java?

503