Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / srikanth

Return type of the method is missing

Is This Answer Correct ?    5 Yes 0 No

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

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

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

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

Post New Answer

More Core Java Interview Questions

What is an Exception ?

10 Answers  


Can java cast null?

0 Answers  


Difference between final and effectively final ?

0 Answers  


What is annotation in java?

0 Answers  


What is unicode?

1 Answers  


What are wrapped classes in java programming?

0 Answers  


What is singleton class and how can we make a class singleton?

0 Answers  


This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?

3 Answers  


what is the full form of java

3 Answers  


Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.

4 Answers  


JVM responsibility?

6 Answers   TCS,


Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?

5 Answers   Ericsson,


Categories