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 are the different access modifiers available in java?
What are the advantages and disadvantages of object cloning?
Explain an algorithm to find depth of a binary tree.
0 Answers Akamai Technologies,
Explain 5 features introduced in jdk 1.7?
Does sprintf allocate memory?
What does @param args mean in java?
Can we access the non-final local variable, inside the local inner class?
What are the traverses in Binary Tree?
where final and static variable stored?
What are static blocks in java ?
Write a program in java to find the maximum and minimum value node from a circular linked list.
Explain thread in java?