ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Explain Public static void main?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain Public static void main?
Answer
# 1
public static void main( String[] args )

1. public - declares that the main method is publicly
accessible to other classes

2. static - declares that the main method can be invoked
without creating an instance of the class

3. void - declares that the main method does not return any
value.

4. main - defines the name of the method

5. String[] args - defines a parameter to the main method
which will contain any command line options passed by the
user when invoking the progam.

These command line options will be passed to the program as
an array of string objects.
 
Is This Answer Correct ?    23 Yes 1 No
Ranganathkini
 
  Re: Explain Public static void main?
Answer
# 2
public-this method is accessible in all the classes
static-this method is called before creation of any instance
void-this method doesn't return any thing
main-Is the name of the method
 
Is This Answer Correct ?    14 Yes 4 No
Ravikiran(aptech Mumbai)
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Which all r Final classes in java except string?  3
what is Vector class?  2
Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang> Symphony6
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class? Satyam2
what is difference between abstract and interface? can i give real time example for the two topics?  6
how to print output with out using sop statements UHG3
what is the difference between a java object reference and c++ pointer?  3
can you program for reverse string? IBM5
what is jms? features of jms CTS1
what are the differences between final,finally,finalize methods?  7
What is the differenc between Enemuration interface and iterator interface according to accessing?  4
If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why? KPIT3
As a developer what steps do you take to improve the performance?  3
how to compile jsp? Logica-CMG3
What is the use of an interface?  3
What are command line arguments?  3
Catch(Exception e){ } in that what is Exception and purpose of that in that place exactly?  3
What is a deadlock ?  5
what is the difference between equals method and == Professional-Access11
What is Distributed Application and what is its usage?  1
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com