Need to use public,static keywords in main function?
Answer Posted / sreedhar
yes,need two thing, javac execution start with main
method,that method declars the private,protected not access
the out side class.
Staic block is execute the first part of the progream ,u
need to mention the Staic on thet main method.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between normal report & matrix report?
When is finally block not called?
Which class is the superclass for all the classes?
I am unable to find or learn about print command. I have a graphical program in core java in applet but i want to give print command but i have coding for that so if anyone know about this plz mail me on avdhesh_chauhan007@yahoo.co.in
Which collection is sorted in java?
Which class cannot be a subclass in java?
why using interface interface ?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
What is the difference between static method and instance method in Java?
What is the lifetime and scope of a variable?
What do you mean by synchronized non access modifier?
How does arraylist size increase in java?
Is array size fixed in java?
Differentiate between class and structure.
What is extension method in java?