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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is class forname reflection?

527


What is the use of java?

532


Is vector ordered in java?

546


What is the intersection and union methods?

559


What are the important features of Java 9 release?

546






Write a function to print Fibonacci series and Tribonacci series?

768


What is string manipulation?

509


What is "this" keyword in java? Explain

674


can rmi and corba based applications interact ?

683


What is difference between module and function?

550


how can i use a nonsynchronized hashtable?

2119


What is bitwise complement?

514


Why unicode is important?

474


Who developed java?

586


Discuss about garbage collector in Java.

655