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 |
how to accept integer array in java
What is the difference in between cpp and java? Can u explain in detail?
What is Marker interface in java? and what is clone?
Which language is java?
Explain the differences between public, private, protected and static?
There are 2 methods in a class. Both have the same method signature except for return types. Is this overloading or overriding or what is it?
What is parsing in grammar?
why ,we are using jsp and html.which one is better?
What is a package in java? List down various advantages of packages.
Distinguish method overloading and overriding
What does pointer mean?
what is the use of declaring constructor as private?
5 Answers Cyient, IVY Technologies, Sai Softech, Virtusa,