Java Introduction

Published by StudyMuch on

Java Introduction

In this tutorial (Java Introduction), you will learn basic about Java programming language like, why Java Programming named “Java”, what is Java, basic program of java, why Java named Oak? history of Java and more. Our Java programming tutorial is designed for student and working professional.

What is Java?

Java is a general-purpose, object-oriented programming language developed by Sun Microsystems of USA in 1991. It is originally called Oak by James Gosling.

Java was designed for the development of software for consumer electronic devices like TVs, VCRs, and such other electronic devices. It is heigh level object-oriented and secure programming language.


Why Java Programming named “Java”?

According to James Gosling (founder and lead designer of Java programming language), Java was one of the top choices along with silk, Since Java was so unique, most of the team member of Java preferred name as “Java”. It is just a name, not an acronym. Java is developed by James Gosling at Sun microsystems (which is now a subsidiary of Oracle Corporation).

Java Programming Example; –

Let’s look a simple Java programming example, the best way to learn a new language it to write a few simple example programs to execute them.

We begin with a very simple program that prints a line of text as output.

public class Main {
     public static void main(String[] args) {
    // write your code here
    System.out.print(“Hello Java ‘StudyMuch”);

You can look above a simple Java program, here we get output “Hello Java ‘StudyMuch'”. We define all the keywords of this program below, here only we try to understand you, how a Java program is look like.

Class Declaration (Basic structure of Java program); –

Let us therefor discuss the programs line by line and understand the unique features that constitute a Java program. We define here the keyword used in above program.

The first line program is; (package;) it is the groups classes of the program. The first statement allowed in a Java file is a package statement. This statement declares a package name and informs the compiler that the classes defined here belong to this package.

Second line of program is; (public class Main) it declares a class, which is an object -oriented construct. Java is a true object-oriented language and therefore, everything must be placed inside the class. Class is a Keyword.

Opening Brace; Every class definition in Java belongs with an opening brace “{” and ends with a matching closing brace “}”.

Third line of program is the main line of program; “public static void main (string[] args)

It defines a method named main. Every Java application program must include the main() method. This is the starting point for the interpreter to begin the execution of a program. A Java application can have any number of classes but only one of them is must include a main method to initiate the execution the Java programs.

This line contains number of keywords; public, static and void.

Public: The keyword public is an access specifier that declares the main method of the program.
Static: The keywork static, which declare this method as one that belongs to the entire class and not a part of any object.
Void: The void keyword specifies that a method should not have any return value


Forth line is; (System.out.println (” Hello Java ‘StudyMuch'”); This is the similar to the printf() statement in C and cout << constant of C++. In Java every method must be part of an object. The println method is a member of the out object, which is a static data member of System class.

And the last output is printed on the screen (Hello Java ‘StudyMuch’). The method println is used to print the object in Java program. The method println always applied a new line character to the end of the string, that means any newline output will start on a new line.

Java StudyMuch

History Of Java; –

The history of Java is very interesting, Java was originally designed for interactive television, but it was to advanced technology for the digital cable television industry at the time.

The history of java starts with Green Team, Java team member is also known as Green Team, they initiate this project to develop a language for digital devices such as Television, Set-top Box etc. However, it was suited for internet programming.

The principles of developing Java programming language were Simple, Portable, Platform-Independent, Secure, Robust, High Performance, Multithreaded, Architecture Nature, Object-Oriented, Dynamic and Interpreted.

Currently Java is used in internet programming, mobile devices, games, e-business solution, etc.

Why Java named “Oak”?

Oak is a symbol of strength and it is national tree of many countries like Germany, U.S.A, France, Romania, etc.

In 1995, Oak was renamed as “Java” because it was already a trademark by Oak Technologies.

So, in this tutorial (Java Introduction) you learned basic about Java programming language, I hope you learned this tutorial better, and in next tutorial you will learn something new about Java. (Java Introduction)

Read Also; –

1 Comment

Tegan Sandman · January 16, 2023 at 9:37 am

Dead pent written content, regards for selective information. “Life is God’s novel. Let him write it.” by Isaac Bashevis Singer.

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *