- public - can be accessed from anywhere
- static – can be invoked without instantiating the class
- void - the method returns nothing
- main – the name of the method
- String args[] – the method arguments
Look at these common Java interview questions asked during real interviews and understand the answers, but instead of memorizing the answers try to complete further research and come with your own personal solution for the interview question. This collection of Java interview question could be also useful for software developers who need to interview Java developer.
Thursday, July 2, 2009
Java interview question 1: Explain public static void main(String[] args) method
In Java language, every application must contain a main method whose signature is public static void main(String[] args).
Subscribe to:
Posts (Atom)