GeekInterview.com
Series: Subject: Topic:
Question: 20 of 1118

In Java, if main method call any other method then that method must be_________

1) Private 2) Recursive 3) Static 4) void
Asked by: aniketyadao500 | Member Since Dec-2011 | Asked on: Dec 10th, 2011

View all questions by aniketyadao500

Showing Answers 1 - 5 of 5 Answers
Ashwani

Answered On : Dec 13th, 2011

Static

Yes  2 Users have rated as useful.
  
Login to rate this answer.
cccc

Answered On : Jan 2nd, 2012

3) Static

Yes  1 User has rated as useful.
  
Login to rate this answer.
shalini

Answered On : Jan 25th, 2012

Void

Yes  1 User has rated as useful.
  
Login to rate this answer.
rizwann

Answered On : Jan 28th, 2012

View all answers by rizwann

3) Static.

Only static mehods can be called from static context

  
Login to rate this answer.
naresh kumar

Answered On : Feb 3rd, 2012

3) Static: Because main is static itself so, it can call only static variable/method.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.