Can we override the main method?

Answer Posted / gautam kumar

no we cannot override main(),becoz it is defined staticly .

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

556


How will you load a specific locale?

536


How do I run java on windows?

531


What is the latest version of java?

581


How will you communicate between two applets?

632






What is encapsulation in java?

626


Explain about wait() method?

568


What is the advantage of OOP in java?

659


How many threads does a core java have?

509


What is string substring?

563


What is the purpose of tostring() method in java?

552


What are user defined exceptions?

587


When arithmeticexception is thrown?

581


Differentiate between stringbuffer and string?

593


What is the purpose of return statement?

631