Java Programming

Lesson 1

Introduction to Java programming

Just like us human being, we have different culture, different languages and so does the computing world. Java is a high level, third generation programming language, like C, FORTRAN, Smalltalk, Perl and many others. Java is an object-oriented programming language and it lets you write special programs called applets.

It was developed by Sun micro systems of USA in 1991. The authors of java are James Gosling, Arthur Van and others. Java is powerful, unique and spreading like wildfire. Java is one of the fastest growing programming technologies of all times thanks to its ability of running on any machines which has Java virtual machine (JVM). Thus java slogan is, “write once, run anywhere.”

Java Environment

java2
Important point to note;

  1. Java application are typically compiled to Bytecode that can run on any JVM
  2. Java derives much of its syntax from C and C++.
  3. Java software run on everything from laptops to data Centers, game consoles to scientific supercomputers.
  4. So let’s write our first java program. I am using Eclipse SDK

    package myfirstprogram;
    public class FavoriteFoodDisplayer {
    public static void main(String[] args) {
    String Favoritefood =”Pizza”;
    System.out.print(“Henry favorite food is”);
    System.out.println(Favoritefood);
    }
    }

    In the console window the out should be: Henry favourite food is pizza

    Exercise 1

    Write a java program that prints:
    Hello world!
    I am learning java which was created by James Gosling.
    And I love it.

One thought on “Java Programming

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s