Explain Public static void main?

Answer Posted / ravikiran(aptech mumbai)

public-this method is accessible in all the classes
static-this method is called before creation of any instance
void-this method doesn't return any thing
main-Is the name of the method

Is This Answer Correct ?    58 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an immutable object?

582


What is arguments in java?

521


How do you implement polymorphism in our day to day life?

2760


How do you remove an object from an arraylist in java?

462


What do you understand by overloading and overriding in java?

544






What is the method to expand and collapse nodes in a jtree?

610


When should the method invokelater() be used?

582


What is multi level inheritance in java?

556


What is size () in java?

548


Is null function in java?

564


What are structs in java?

571


What is a literal coding?

510


How to make a class or a bean serializable?

537


Difference between arraylist and hashset in java?

541


Is minecraft java edition free?

576