Remember Me
forgot your password?

Java Programming

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.

KULAPPU THANTHRIGE KARUNADASA

The author is holding a M Sc in IT

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

Add new Comment



Captcha

  • Latest Programming Articles
  • More from KULAPPU THANTHRIGE KARUNADASA

Writing plugins for RDesktop

By: Apriorit Inc. | 01/12/2009
This article was mostly written for Linux developers. The article gives a method of writing out-of-process plugins to open source software – i.e., plugins that will work as a part of the software but will run in another process, so their code may stay closed.

ASP.Net Listview Databinding

By: pons_saravanan | 01/12/2009
Databind the ListView with database using ADO.Net datatable

Your mobile phone is too important not to have mobile antivirus software

By: Tom | 01/12/2009
Mobile phone antivirus software and mobile phone antispam software have become important and popular features to have on your mobile phone these days.

A reason to smile for All PHP Developers

By: Mahendra Sharma | 28/11/2009
The PHP developers have full right to smile today due to their choice of career as PHP programmers. This article is highlighting some key factors on how this language is bypassing all other in the website development world.

How to Solve the Registry Errors

By: janson | 27/11/2009
The Registry of Windows is the most important for the working of the computer system due to it stores valuable data which can cause serious loss in performance of the system. The registry files of Windows are set to save the configuration settings of Windows and they are spread around on the hard disk. To solve the errors of them was absolute a Herculean task.

Gravity Jack Software Studio is a new venture that is pushing the envelope in the mobile software development arena

By: Adam Chronister | 26/11/2009
Gravity Jack opened offices this month in Liberty Lake and is currently filing patents regarding a tightly-kept secret project that is expected to revolutionize the way people interact with mobile computing platforms such as Apple’s iPhone and Google’s Android.

PHP and Open Source, Keys to build complex but Affordable websites

By: Mahendra Sharma | 26/11/2009
Gone are the days when high tech programmers and high profile companies were required to be engaged to develop a complex system on web. Open Source and especially PHP developers have changed the scenario. Every other day you can find new software available as open source developed by PHP programmers. Essential thing is such software is available for free or at nominal cost.

Java Application development India

By: Rightway Solution | 25/11/2009
Java is most suitable for creating Enterprise Applications for its flexibility and control. JAVA is used to create wide range of application with an extensive functionality.

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

Java Programming

By: KULAPPU THANTHRIGE KARUNADASA | 13/11/2007 | Programming
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.

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

Submit Your Articles Free: Signup
Article Categories




Use of this web site constitutes acceptance of the Terms Of Use and Privacy Policy | User published content is licensed under a Creative Commons License.
Copyright © 2005-2008 Free Articles by ArticlesBase.com, All rights reserved. (0.22, 2, w1)