In Java why we write public static void main(String args[])
why not main()?
Answer Posted / pandurang d billavar
for execution of class in java is done by creating a object
for methods of that class.so main method is also a class
method.so this method is called by jvm directly without
creating object for main method.it is possible only if main
is static.............so we maked main as static.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
Have you ever used hashtable and dictionary?
Is main a keyword in java?
When will we prefer to use set and list in java and why?
if u open login & logout ,how can udisplay the timelogin & logout members ?
Explain about collection interface in java?
Which programming language is most secure?
What is equlas() and hashcode() contract in java? Where does it used?
How much is a java license?
Is space a char?
What is size () in java?
What is null mean in java?
How many digits can a float hold?
How to sort an array in java without using sort method?
How to create an immutable class?