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 |
Is it possible to do method overloading and overriding at a time
What is difference between Heap and Stack Memory?
How is it possible for two string objects with identical values not to be equal under the == operator?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
Are arrays classes in java?
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?
What does sprintf mean?
What is constructor in java ?
What are the elements of java?
how can be object class inherited to all class in a program when java does not support multiple inheritance??
While opening the file, what type of exceptions can be caught?
How do you call a reference in java?