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
How can you add and remove nodes in jtree?
Why we use protected in java?
How dead lock situation occurs in java and how you can identify it?
Can we extend a class with private constructor?
What are filterstreams?
What is sleep method?
What is abstraction in java?
Explain restrictions for using anonymous inner classes?
Which sort is best in java?
Define class?
Differentiate between a constructor and a method? Can we mark constructors final?
What are the two environment variables that must be set in order to run any java programs?
Is it possible to override private or static method in java?
What is a java lambda expression?
What is an object class?