Does the order of public and static declaration matter in main method?
Answer / Pankaj Jaiswal
The order of 'public' and 'static' does not matter in the main method declaration. Both can appear before or after the method name as long as they are present at the beginning of the line.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by thread safe?
What does compareto () do in java?
What are the important features of Java 11 release?
What is meant by Static query and Dynamic query?
What are different access specifiers in java? Explain
If there is no implementation of MARKER INTERFACE in java. Then how compiler come to know about specification.
What are the operands of instanceof operator?
Can you change array size in java?
What are null interfaces? Give some examples?
What is the difference between method and constructor ?
What class allows you to read objects directly from a stream?
Give us a program to check for parenthesis matching using stack.