Free Online Articles Directory
18.11.2008 Sign In Register Hello Guest
Email:
Password:
Remember Me 
forgot your password?


Java Programming

Author: KULAPPU THANTHRIGE KARUNADASA Author Ranking Blue | Posted: 13-11-2007 | Comments: 0 | Views: 31 | Rating:  (53) Article Popularity - Blue (?) Got a Question? Ask.
Sign Up Now!

Java is a programming technology developed by Sun Microsystems. Java is an object-oriented language. Java can be used for web development.

Java is platform independent. The java code is compiled into a bytecode that can be run on a Java Virtual Machine(JVM). So Java code will run on any system that has a JVM installed in it. Java is robust, flexible and scalable. It can also be used to communicate with legacy systems.

Java provides a lot of classes or objects. Java Swings is a tool-kit that has a wide range of objects from text-boxes to menu bars to make website design easy.

Java programs consist of classes. Classes consist of methods. Java language can be used to develop object oriented applications.

Visit

http://learnjavatoday.blogspot.com

for more details.

The simplest form of a java program is as follows:

// Java program 1

public class Welcome1{

public static void main (String args[])

{

System.out.println ( “Welcom”);

}

}

In the above example;

// denotes that the statement is a comment and it not considered for programming.

The statement public class welcome1 is used to define the class. Java programs consist of classes defined like this.

The statement public static void main is used to define program building block. Every java program consist of a main function.

The statement System,out.println is used to produce the output. It gives instructions to the computer to print the String as an output.

Save the above program as Welcome1.java in the java Bin Directory.

Example C:javabin

The next step is to create the .class file by compiling the .java file.

In the dos prompt,

Type javac Welcome1.java and press enter.

It will produce a .class filee.

The final step is to run the class file. Type java Welcome1 to execute the .class file.

You will receive the desired output.

Rate this Article: Current: 0 / 5 stars - 0 vote(s).

Article Tags: Java Programming

Article Source: http://www.articlesbase.com/programming-articles/java-programming-258557.html

Print this Article Print article   Email to a Friend Send to friend   Publish this Article on your Website Publish this Article   Send Author Feedback Author feedback  
About the Author:

The author is holding a M Sc in IT

Submitting articles has become one of the most popular means to drive traffic to your website and promote yourself and your business. Join us today - It's Free!

Article Comments

Comment on this article Comment on this article
Your Name
Your Email:
Comment Body
Enter Validation Code: Captcha


Related Articles

Establishing Java Code: the Future of Software Development
By: Sunil S | 07/08/2008 | Programming
As software applications become larger and complex due to develop by using procedural programming languages, it becomes increasingly difficult to maintain and improve code bases or to diagnose bugs. Java programming language is rapid increase and wide popularity can be traced to its design and programming features, particularly in its remote platform feature that you can write a program once, and run it anywhere.

Web Development Using Java Technologies
By: Hidden Brains | 14/08/2008 | Information Technology
India based company offers freelance java development service. Developed applications like Video Streaming/ Sharing Application, Online Games Application, E-Commerce Web Application etc.

Got a Question? Ask.

Ask the community a question about this article:

Frequently Asked Questions

How to do a Java Layout
By: Penquin753 | 06-11-2008
How to do a Java Layout

Describe how usability and software quality are ...
By: Penquin753 | 04-11-2008
Describe how usability and software quality are related.

Q&A Powered by:
Powered by Yedda 

Latest Programming Articles

Cool Desktop Wallpapers
By: Danny | 18/11/2008
Cool desktop wallpaper is accomplishments arrangement that displayed in the computer operating system. The wallpapers usually be acclimated in JPEG, BMP and GIF book formats. That wallpaper can be acclimated with Microsoft Windows, Linux and Macintosh Mac OS. Each adviser can be altered requirements, alike admitting wallpaper images advised for accepted monitors can be scaled up or bottomward to the fit size. Those are accessible on the internet for free. Some categories of wallpapers are a

Tips for Buying Software Online
By: Daniel Jowssey | 17/11/2008
Buying software online not only helps save the planet, it also has other benefits, including: * Ease and Simplicity. You can purchase software in your underwear at 4am if you really want to. Shopping online doesn’t have to be done within regular business hours, nor do you need to look your best to do it. It’s also easy to shop around for the best prices and takes less time than driving to the shops.

Mvc Design Pattern
By: TuVinhSoft .,JSC | 14/11/2008
Model-view-controller (MVC) is an architectural pattern used in software engineering. In complex computer applications that present a large amount of data to the user, a developer often wishes to separate data (model) and user interface (View) concerns, so that changes to the user interface will not affect data handling, and that the data can be reorganized without changing the user interface.

Advantages of Low Cost Contract Programmers in Freelance Programming
By: Joanna Gadel | 12/11/2008
It observed that web industry is getting tougher thus the necessity of freelance contract programmer is required for developing more effective website with flexible features. This article states the fruitful advantages of freelance programmers in contract programming.

A Guide to Cnc Kits
By: Martin Applebaum | 09/11/2008
CNC kits are a way in which to construct your CNC machine. This article will provide some information on these machines.

A Guide to Cnc Tube Bending Machines
By: Martin Applebaum | 08/11/2008
Are you familiar with a CNC tube bending machine? This article will shed some light on the main function and components of this machine.

Ways to Hire Dedicated Php Programmers
By: Jucick | 08/11/2008
It’s not at all easy to hire dedicated PHP programmers unless you know where and how to find them. Whether you need to fix, update or enhance your website you naturally want the job done quick and right.

Top 4 Reasons Why Addressing Web Accessibility is Important
By: Matt Cave | 05/11/2008
There are very high chances that web accessibility is more important to the performance of your web site than you realize. Article takes a look at the top 4 reasons why it would be important to address the issue of web accessibility.

More from KULAPPU THANTHRIGE KARUNADASA

Java Programming - Accessing Databases Using Jdbc
By: KULAPPU THANTHRIGE KARUNADASA | 17/11/2007 | Programming
JAVA can be used to access databases. JAVA has a special feature for this purpose. called as JDBC. The artcle explains how to program for JDBC

Is your Computer Running Slow
By: KULAPPU THANTHRIGE KARUNADASA | 10/11/2007 | Hardware
Your computer may be running slow due to various reasons. It may be due to spy ware, virus infection, low RAM, too many applications, registry errors, automatic updates etc.

Programmable Logic Cobtrollers
By: KULAPPU THANTHRIGE KARUNADASA | 04/11/2007 | Hardware
A programmable logic controller (PLC), is a digital computer used for automation of industrial processes., The PLCs are widely used in indutrial automation.

Features of Laptop Computers
By: KULAPPU THANTHRIGE KARUNADASA | 28/10/2007 | Hardware
Laptops are light in weight and enercy efficient. They can be used for business purposes while traveling. They are battery operated. Batteries have a long life. Laptops have built in capabilities such as touch pad, wireless network card etc.

Travel in Sri Lanka
By: KULAPPU THANTHRIGE KARUNADASA | 09/09/2007 | Travel
SRI LANKA IS ONE OF THE MOST BEAUTIFUL ISLANDS TO SPEND YOUR HOLIDAY

Article Categories





Give Feedback

Sign up for our email newsletter

Receive updates, enter your email below