package org.megha.blog.example.part1; /** * This class prints "Hello World". * * <p> * If you are not using eclipse or another IDE, * here are the commands to execute to compile * and run your first java program. * <p> * To compile (run the command after $ * in java-through-examples/ directory) * <pre> * $ javac -d bin -s src src/org/megha/blog/example/part1/* * </pre> * <p> * To run (from the same folder, ie. java-through-examples/) * <pre> * $ java -classpath bin \ * org.megha.blog.example.part1.HelloWorld * </pre> */ public class HelloWorld { public static void main(String args[]) { System.out.println("Hello World"); } }
Wednesday, September 14, 2011
First Java Program
Get going with java! Start with this program that prints "Hello World".
Subscribe to:
Post Comments (Atom)
Hi, This is Chandrika from Chennai. I have read your blog and I got some knowledgeable information through this blog. Really useful blog. Keep update your blog.
ReplyDeleteRegards...
Java Training Chennai
Nice, Thanks for sharing this basic program. Every programmer firstly write a basic program. If any students interested to learn Java course, they can join Java training course in Ludhiana.
ReplyDeleteI wanted to thank you for this great read. Your blog is one of the finest blog . Thanks for posting this informative article.
ReplyDeletePython for Data Science: Harnessing Pandas for Effective Data Manipulation