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 meant by class loader? How many types are there? When will we use them?
how are methods defined?
What are listeners in java and explain ?
can we write two same methods in outer class and innerclass.
Can we have any code between try and finally blocks?
Will minecraft java be discontinued?
I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?
Can we call a non-static method from inside a static method?
Why are variables important in research?
What is Yield() method when we r using this ? tell exactly
Is null keyword in java?
Realized?