y cant i declare method like public final static show()
Answers were Sorted based on User's Feedback
Answer / karthi
Return type of the method is missing
ex:
public final static void show(){}
now it ll work.
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / raghavendra singh
every method declaration must has one return type(even void)
just before their method name.without return type method has
no meaning.so add some return type also here.
that's why i can't declare method like public final static
show()
| Is This Answer Correct ? | 1 Yes | 0 No |
Which methods are used during serialization and deserialization process?
why pointer is not used in java?
What is the difference between heap memory and stack memory?
What is array sorting in java?
What are the types of literals?
What is data movement?
Hi friends i want display Triangle shap stars(*) please can tell me any one java code logic? * *** ***** ******* Like this
What is java util list?
Explain the difference between protected and default access.
Is zero a natural number?
Explain Stream Tokenizer?
Why 1 is not a prime number?