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 to calculate the length of a singly linked list in java?
Why we used break and continue statement in java?
Is a class subclass of itself?
What is a priority queue java?
Can we assign null to double in java?
What is %d in printf?
How do you convert an int to a string in java?
What does sizeof return?
What is the use of default method in interface in java? Explain
Explain the differences between abstraction and encapsulation?
Describe what a thread-local variable is in java?
What is difference between iterator access and index access?
What is the purpose of the enableevents() method?
What is the generic class?
Why spring singleton is not thread safe?