y cant i declare method like public final static show()
Answer Posted / 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 |
Post New Answer View All Answers
What is a consumer in java?
What is a class variable?
Explain about member inner classes?
Can the garbage collection be forced by any means?
What is native method in java?
What are selection structures?
What are white spaces in java?
What is the size of string?
Explain the scope of a variable.
I don’t want my class to be inherited by any other class. What should I do?
What happens if we don’t define serial version uid?
What are the high-level thread states in java programming?
Is there a case when finally will not execute?
What’s the difference between unit, integration and functional testing?
What is the synonym of framework?