Stephan van Hulst wrote:Do you have any guesses? If you don't, start reading this: http://download.oracle.com/javase/tutorial/java/index.html
Jesper de Jong wrote:Yasser, did you really look in the tutorials that Stephan pointed you to? Because you can easily find the answers in there. Here are some more specific links into the relevant tutorial pages:
public: Controlling Access to Members of a Class
static: Understanding Instance and Class Members
void: Returning a Value from a Method
main: A Closer Look at the "Hello World!" Application
If there's still something you don't understand, then please ask more questions here - but please be specific. It's hard to understand a generic "I don't understand it" question.
Yasser Shaikh wrote:is the String var in the main method is it compulsary?