Programming





What is Java?

What is Java?


by Administrator | 19-Mar-2020
Java

Tags:  Compiler  Java  Interpreter  Program

Share: 


java-logo

Java is a high-level object-oriented, platform-independent programming language. Java was developed by James Gosling and provided by Sun Microsystems in 1995.

Features of Java:

  1. Platform independent: We can run a java program and it will run on any platform like Windows, Mac or Linux.
  2. Robust: Java comes with features like memory management, better security without the use of pointers and automatic garbage collection which makes it robust.
  3. Object-oriented: Java is completely an object-oriented programming language packed with features like abstraction, encapsulation, inheritance, and polymorphism.
  4. Portable: We can take the Java program's bytecode and run in on any machine and the output will be the same.
  5. High Performance: With the use of multithreading we can write java programs which will be faster
  6. Secure: Java does not use pointers which makes it more secure than other programming languages.

What is a language?

Language is a way of communication between two entities. 

What is a program?

A program is a set of instructions written to perform some specific task. 

Types of programming languages:

  1. Low-level language: The languages which are easily understood by machines are low-level languages.
  2. High-level language: The languages which are easily understood by humans are called as high-level languages. 

What is an Interpreter?

The interpreter verifies the instructions line-by-line which means it will only move to the second line if there is no error in the first line.

What is a Compiler?

The compiler will verify all the instructions at the same time. The information about all the incorrect statements will be displayed at the same time. If there is an error in a Java program then it will not generate a bytecode.  


Comments:


There are no comments.

Enter a new Comment:










Copyright Šprgrmmng. All rights reserved.