Skip to content

Instantly share code, notes, and snippets.

@rahulkmr
Created February 7, 2010 07:31
Show Gist options
  • Save rahulkmr/297281 to your computer and use it in GitHub Desktop.
Save rahulkmr/297281 to your computer and use it in GitHub Desktop.
/* Hello.java */
public class Hello
{
public static void main(String[] args)
{
System.out.println("Hello World");
}
}
/* Hello2.java */
public class Hello2
{
static
{
System.out.println("Hello World");
}
}
/* Hello3.java */
public class Hello3
{
static
{
System.out.println("Hello World");
System.exit(0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment