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

How many bytes is a string in java?

527


What is string in java?

550


What is a line break example?

569


Does string is thread-safe in java?

584


How to compare two strings in java program?

667






What is thread life cycle in java?

576


Explain about fail safe iterators in java?

556


What is an infinite loop? How infinite loop is declared?

563


Explain the difference between string, stringbuffer and stringbuilder in java?

551


when to use ArrayList and when to use HashMap in webApplication.

3877


If an application has multiple classes in it, is it okay to have a main method in more than one class?

532


What is string value?

630


What is a qms manual?

535


In which order the iterator iterates over collection?

573


worst case complexities of Quick sort and Merge sort.

588