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 |
What does sprintf return?
Define the term string pool?
What is the diffrence between inner class and nested class?
Can you explain the cs option of java interpreter?
What is dynamic binding?
what is meta-Inf?
finalize() method?
Why packages are used?
What is skeleton and stub? What is the purpose of those?
Why should we use singleton pattern instead of static class?
which of tha following is not a thread safe class? a) ArrayList b)Vector c)HashTable d)None
how to convert Java project into Maven ?