Wednesday, December 15, 2010

Lesson4 - Some tips

  • Java is case sensitive. Syntax words need to be declared or written in the required cases. For eg. String has to be written in INIT CAPs. 'if else' statements the words have to be in lower case.
  • '+' is the string connector operator.
  • Every application has to have a main method.
  • PATH - is the system parameter where the JDK exists along with the other JAVA libraries which contain apis or methods that can be used in your programming. System.out.println is one such method.
  • CLASS PATH - is the system variable where the .class files are stored. For any method to invoke a method of some other class, both the classes need to be stored in the same class path.
  • public static void main - public : method has to be defined as public if you want other applications to call the method.
  • void - void signifies that the method doesn't return any data.
  • static - static signifies that the method can be invoked without object. Generally methods are called as object.method, but if declared as static then you can just invoke the method without the object.

No comments: