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

How will you compute size of a structure?

0 Answers   Amdocs,


How can you reverse a string?

8 Answers  


What are the 6 mandatory procedures for iso 9001?

0 Answers  


what is dynamic method dispatch ?

27 Answers   Fidelity, MUET, SDSF,


Ducking is automatic in checked exception?True or false

2 Answers  


Is java free for commercial?

0 Answers  


What are 3 boolean operators?

0 Answers  


What are parent methods and how can you call them?

2 Answers  


Why singleton class is used in java?

0 Answers  


How do u pass data from one jsp to another jsp?

3 Answers   Fidelity,


What is the access scope of a protected method?

0 Answers  


What do you understand by private, protected and public?

0 Answers  


Categories