In Java why we write public static void main(String args[])
why not main()?
Answer Posted / sumalatha
yes in every progrm in jave the main is static.because when
the program will start ,thit means runnig then the main is
also one method it was called first that means without
instans creations the main is called.thet is the reason we
are put as main is static method(static is used for without
instance creat u call it).void means it does not reaturn
any value
| Is This Answer Correct ? | 148 Yes | 43 No |
Post New Answer View All Answers
What is an example of a conditional statement?
Define max and min heap, also the search time of heap.
What is visibility mode?
Tell us something about an iterator.
how to create multithreaded program? Explain different ways of using thread? : Java thread
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
How to add menushortcut to menu item?
What is anti pattern in java?
What java is used for?
Does chrome use java?
Is it necessary for the port addresses to be unique? Explain with reason.
Why should we use singleton pattern instead of static class?
how many types of Inheritance?
Is null an object in java?
Can we inherit a class with private constructor?