Sunday, 26 May 2013

An Example HelloWorld


/**    This is my first java program */
public class HelloWorldExample
{ public static void main( String args[] ){
System.out.println("Hello World");}}

Java Source Code Naming Conventions
All java source file should end in .java
Each .java file can contain only one public class
The name of the file should be the name of the public class plus ".java"
Do not use abbreviations in the name of the class
If the class name contains multiple words then capitalize the first letter of each word ex. HelloWorld.java

No comments:

Post a Comment