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 do you get the length of a string in java?
What is a function easy definition?
How to call a Stored Procedure from JDBC?
in a console we r giving java <class name> if r pressing enter where it'll goes
What is tcp and udp?
Define an applet in java?
Is java a compiler?
Life Cycle of Thread
Which command from the jdk compiles a java program?
How to call one constructor from the other constructor ?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What is an infinite loop? How infinite loop is declared?