Java Introduction For Beginners


In this post we discus about the java programming language Java Introduction For Beginners and Features of java After Java 'C' and 'C ++', the most important programming language is used not only in computers but also in cell phones, Mobiles, PDAs, etc. 

Java Introduction For Beginners


In addition to Java, such application software can be made very easily, which can connect different types of electronic devices and communicate with each other.

So Lets Start To  Java Introduction For Beginners

  1. Java History
  2. Features of java
  3. Object oriented principles of java
  4. Java development tools 

  1. Java History

In Programming language we called java is object oriented programming language. Sun Micro-systems java in 1991 in the US Was made in Java was first named oak but later it was java by changing it. Java James Gosling had developed. Java was developed to create consumer electronics such as TV, VCR etc. software.

Java's most important and popular feature was that java platform was independent. Because java was not created for any particular hardware or operating system.  Programs created in Java can be executed on any system. This feature of Java makes java the most popular language today

  • Features of java


Java has many features. To become a good java programmer, you must know all these features. Let's try to know about some of the popular features of java.

  • Compiled and Interpreted
  • Platform Independent
  • Object Oriented
  • Robust and Secure
  • Distributed
  • Simple and Familiar
  • Multi-threaded and Interactive
  • High Performance
  • Dynamic and Extensible
  • Ease of Development

  • Compiled and Interpreted
Most programming languages ​​are either compiled or interpreted. But java combines these two approaches and creates a two stage system. First java produces byte code by compiling your program. Byte code machine instructions are not. Therefore java interprets the byte code in second stage and generates machine code, which can be executed directly.


  • Platform Independent
Java makes the byte code platform independent. When you compile a java program, it gets converted into a byte code. These byte codes cannot run on any machine or operating system. It just runs on JVM (Java VirtualMachine).

To run Java's program you have to install JVM on your operating system. There is a separate JVM for each operating system, but the work does all the same. And that is the job to convert the byte code to the machine code for that operating system. Therefore, byte code generated by JVM of any one operating system can be run on any other JVM. And then JVM generates machine code for that operating system.

Therefore different machine codes are generated for different machines but they are generated from the same byte code because your program is first converted into byte code.

  • Object Oriented
Java is a true object oriented programming language. In Java almost everything is the object. All your information in Java is stored as objects.

  • Robust and Secure
Java is a robust language. Any program created in Java can work in different environments without crashing with different technologies. Java programs never crash. This is a very reliable language.
Security in Java is provided by JVM. Before producing machine code, it runs some tests on JVM and detects invalid combinations.

  • Distributed
You can create distributed applications from Java. Distributed applications are those applications that are on different networks and work together to perform tasks. Through RMI in Java, you can interact with available applications on another network.

  • Simple and Familiar
Java is a simple language. Many of the Java features are derived from c and c ++. Java's syntax is similar to c and c ++.  Such as variable declarations control statements and method declarations etc. All this makes java easier to understand. Because java c and c ++ are built keeping in mind so most programmers seem to be familiar.

  • Multi-threaded and Interactive
Java is a multi-threaded language. Any java program can complete several tasks simultaneously. This feature makes java fast and interactive.

  • High Performance
Java's performance is very impressive. The speed of Java is the main reason byte code. The architecture of Java is designed in such a manner that over head on java run over is very less.


  • Dynamic and Extensible
Java is a dynamic language. During the Java run time, dynamic linking is done by libraries, methods and classes. Java can be easily used with new technologies.

  • Ease of Development
It is very easy to develop programs in Java. Java provides built-in libraries that contain important classes for your use. This reduces the overhead of the programmer. Programmer can easily develop software by accessing these libraries.


  • Object Oriented Principles Of Java

As I told you, java is an object oriented language. Java also follows all object oriented technologies like object oriented principles. Let's try to know about these principles.

  • Encapsulation
  • Inheritance
  • Polymorphism
  • Abstraction



  • Encapsulation

Encapsulation is also called data hiding. In Encapsulation, you declare private variables and they access through public methods, your variables can access methods of your own class. No other class can access your variables. Thus, you also hide data and also use it.

Another means of encapsulation is to bind the data and code into one unit and prevent access from the outside. Such your variables and methods are banded in the same unit. Java provides 3 levels of data hiding.

Public  - Your public class members can access other classes

Private  - Your private class members cannot access any other class.

Protected  - Only class to inherit your class can access your class members.

  • Inheritance

Through this principle, you can access the variables of a class in the second class. Doing so does not require you to write the same methods repeatedly. This eliminates computer's memory and programmers time both. Multiple inheritances is not allowed in Java. A class can inherit only one class. This reduces through java interfaces.

  • Polymorphism

Polymorphism means "one name and many things" Through polymorphism you can take one according to the different actions according to the situation from an interface.  As the method is used in overloading.

  • Abstraction

Abstraction is a very important concept of java. When you bike you do not know how the bike is working. You just run it. You do not know his internal work. The same concept of abstraction is also. You do not show your software's internal working user. Just provide the interface to the user so that they will interact.

  • Java Development Tools


In Java the software is created with the help of some built in development tools. Let's try to know about these development tools.

  

  • JDK (Java Development Kit)
JDK is an environment in which you can create any java program and execute it. JDK has JRE which is responsible for the execution of any java program.

  • JRE (Java Run-time Environment)
JRE is responsible for the execution of your program. JRE is a group of classes and libraries that together create the program to execute the environment.

  • JVM (Java Virtual Machine)

As you know, when you compile a java program, it is converted to the first byte code. After that it is converted into a byte code machine code. JVM is an environment or machine that converts the byte code to machine code. It works in conjunction with JRE

So this is the Java Introduction For Beginners. I hope you learn lots if you have nay query and question please comment in the comment box and share with your friend and thanks for reading keep read our post for that kinds of content 










0 comments: