Simple First Example for Begin Java- Source Code

Beginning from today I’m starting a new tutorials with examples codes for who like to learn java .Before  you start Java Setup Java to your machine. Actually I have about 4 years experience in java so ill think that this examples will help you a lot. In these tutorials for displaying the result I’ll use Java Swing Objects 
All we know the “helloworld” application is the simplest application that we all know. 


Example 1: HelloWorld.java





Now I think you know to compilr this code just copy above code then create a java file as "HelloWorld.java" then,


Compile: javac HelloWorld.java
Run: java HelloWorld


Result:




Category Article , ,

What's on Your Mind...

Random Posts

Powered by Blogger.