y cant i declare method like public final static show()

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Enlist few advantages of inheritance?

580


What is the difference between variable declaration and variable initialization?

502


Explain java thread life cycle.

578


What does sprintf return?

583


What is blank final variable?

561






How to change the priority of thread or how to set priority of thread?

563


What is regex in java?

527


Write a program to find maximum and minimum number in array?

550


What is getkey () in java?

570


What is heterogeneous in java?

486


Can a class be private in java?

539


Is passing by reference faster?

519


What two classes are used to read data only?

636


What is indexof in java?

512


Is null a string?

550