Saturday, 5 May 2018

Chaudhari Karan

Java Introduction, How to download java and how to set path in java.

    No comments:

Lecture 1 Java –Introduction

Hello, friends

Here we start java programming language. We will consider the whole series of java with the practical programs. I hope it will help you for learning java.

Java Introduction

Introduction of java :

Java is the object-oriented programming language. It is higher level programming language which is developed by Sun Microsystems and it is released in 1995. Java is run on the different-different platform like WINDOWS, LINUX, and UNIX.

Java depends on objects, classes, and functions. So in java its all about objects.

Object Oriented: Java is about objects so it can be extended easily since it depends on "Objects Models".

Simple: Java language is very easy to learn so if you know basic of java you can be the master of programming.

Platform Independent: Java is platform independent language. In java when the compiled independent means, file compiled and create the platform-independent byte file which is in (.class). This byte file also is known as bytecode which is interpreted by the virtual machine(JVM) and distributed over the web. And it is run on the different platforms.

 It does not depend on the specific machine like other languages C and C++.

Secure: Java is the secure language which has secure feature. It enables to develop the virus and tamper-free systems. It is authentication techniques are depended upon the public-key encryption.

Architectural-neutral: When compile the java file format and generate the architectural-neutral file, which compiled the file make the compiled code for executing different processor with java runtime system.

Portable: In java architectural-neutral and having no implementation aspects makes the Java portable.

Robust: In java mainly error comes while the compile time and runtime time checking, which makes the effort to eliminate error-prone situations.

Multithreaded: Multithreaded feature makes the easy task for the developer. The developer can write the program which performs many tasks simultaneously. It is used for construct interactive applications and it is running smoothly.

Interpreted: In java generate the bytecode and it is translated to the native machine instruction, and bytecode not stored anywhere.

High Performance: Java uses the Just-In-Time compiler, due to that it gives the high performance.

Distributed : Java is develop for distributed environment to internet.

Dynamic: Java language is dynamic than C and C++. In Java programs can carry the extensive amount of run-time. It can be used for resolve access and verify on run-time.

Software for Java :

First, download the Java JDK latest version from the official site. After installing the java. After the installed second most important thing is set the path for java.

Set the java path:

Step 1: Right-click on the computer and click on the property.

how to set path in java

Step 2: Then click on the Advanced system setting.

How to set path in java

Step 3: Click on the Environment Variable.

How to set path in java

Step 4: Click on the new or edit and set the path.

How to set path in java

The path for the window : c:\Program Files\java\jdk directory

Then we need Notepad or Notepad++ or other text editors.

Here is the example of java program :

java program

Output :

This my first Java program

Next: In next lecture, we will discuss the basic syntax of java.

Subscribe to this Blog via Email :