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

Answer Posted / guest

there is only 1 main class

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 lossy conversion in java?

563


Is void a type?

585


How do you create immutable object in java?

539


How do you define a variable?

539


Can we call the run() method instead of start()?

593






What is java used for on a computer?

509


What is data and its types?

573


What is the difference between java applets and applications?

568


What are three types of loops in java?

589


What is volatile data type?

552


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

601


Difference between vector and arraylist.

585


What is the difference between an if statement and a switch statement?

650


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

573


How hashset works internally in java?

588