In Java why we write public static void main(String args[])
why not main()?

Answer Posted / hari kiran

I think so it is done because all the java receives
everything in the form of a string.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean field?

531


What are the benefits of immutable objects?

539


What are the object and class classes used for?

564


Can you make a constructor final in Java?

628


What is a package in java? List down various advantages of packages.

757






Which collection does not allow duplicates in java?

473


Is string a class?

556


How many threads does a core java have?

512


Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?

655


What is a singleton puppy?

535


What is ternary operator? Give an example.

603


What is final, finally, finalize?

598


Are strings immutable in java?

525


What is lambda in java?

518


How do you create a null object?

512