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 is the symbol for line break?
What is the java reflection api? Why it’s so important to have?
Is multiple inheritance supported by java?
What does indexof mean?
is JVM platform dependent or independent..?
11 Answers IBM, Tech Mahindra,
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What is the difference between instanceof and isinstance?
Which are the two subclasses under exception class?
What are JVM.JRE, J2EE, JNI?
Which is better singleton or static class?
What is static import?
What is string variable?