Skip to main content

Features Of Java

 Features Of Java

The main objective of Java Programing was to make it portable, simple and secur programming language. The features of java language is as below.


1. Simple: 

    Java is very easy to learn and syntax is simple, clean and easy to understand. Java syntax is base on C++ so easier for programmers to learn it after C++. Java has removed many complicated and rarely use features for example, explicit pointer, operator overloading etc. In java, there is no need to remove unreferenced object because there is Automatic Garbage Collection in java.

2. Object Oriented:

    In java the data and methods can flow in the form of object so it is call Object-oriented programing language. Object oriented programming is a methodology that simplifies software development and maintain by providing some rules. The basic concepts of OOPS are:

  •     Object
  •     Class
  •     Inheritance
  •     Ploymorphism
  •     Abstraction
  •     Encapsulation

3. Portable:

    Java is portable because you carry the Java bytecode to another platform to run. It doesn't required any implementation. 

4. Platform Independent:

    Java is platform independent because it will write once and run anywhere language. A platform is the hardware or software in which a program runs.

5. Secured:

    Java is best known for its security because there is no explicit pointer and java program run inside a virtual machine.

6. Robust:

    Robust means Strong, Java is robust because 

  •     It has strong memory management.
  •     There is lack of pointer that avoid security problems.
  •     Automatic garbage collection which removes not use object in java application. 

7. Architecture natural:

    Java is architechure in natural because there are no implementation dependent features, for examples, the size of primitive types is fixed.

8. High Performance:

    Java is faster than other traditional interpreted programming language because java bytecode is 'close' to native code.

9. Multithreaded:

    A thread is like a separate program, executing concurrently. We can run many tasks at once by defining multiple threads that means we need not wait for the application to finish one task before beginning another. The main advantage of multithreading is that it doesn't occupy memory for each thread. It shares a common memory area.

10. Distributed:

    Java is design as a distributed language for creating applications on network. It has ability to share data and program over network. Java application can open and access remote objects on internet as easy as they can do on local system.  This enables multiple programmer at multiple remote locations to collaborate and work together on single project. This feature java make us able to access file by calling the methods from any machine on internet.

11. Dynamic:

    Java is a dynamic language. It supports dynamic loading of classes. It means classes are load on demands. Java supports dynamic compilation and automatic memory management (Garbage collection).


Comments

Popular posts from this blog

Introduction of Java

 What is Java? Java is an object-oriented programming language developed by Sun Microsystem in 1995. It is a combination of C and C++ features with some essential and additional concepts. Java is suited for both standalone and web application development. Java can run on any hardware OR software environment which make it platform independent. Java Example:                                                                                           class Simple{     public static void main(String args[]){          System.out.println("Welcome In Java World");     } } In above example the 'Simple' is a Class name, public is access specifier , Main is a method with argument, St...

Java Package

 Introduction      A java package is a group of similar types of classes, interfaces and sub-packages. Package in java can be categorized in two form, built-in package and user-defined package. There are many built-in packages such as java, lang, awt, javax, swing, net, io, util, sql etc. Here, we will have the detailed learning of creating and using user-defined packages. Simple example of java package The package keyword is used to create a package in java. //save as Simple.java   package mypack;   public class Simple{    public static void main(String args[]){       System.out.println("Welcome to package");      }   }   How to access package from another package? There are three ways to access the package from outside the package. 1. import package.*; 2. import package.classname; 3. fully qualified name. 1. Using packagename.*      If you use package.* the...

Access Modifiers in Java

 Introduction There are two types of modifiers in Java: access modifiers and non-access modifiers. The access modifiers in Java specifies the accessibility or scope of a field, method, constructor, or class. We can change the access level of fields, constructors, methods, and class by applying the access modifier on it. There are four types of Java access modifiers: 1. Private: The access level of a private modifier is only within the class. It cannot be accessed from outside the class. 2. Default: The access level of a default modifier is only within the package. It cannot be accessed from outside the package. If you do not specify any access level, it will be the default. 3. Protected: The access level of a protected modifier is within the package and outside the package through child class. If you do not make the child class, it cannot be accessed from outside the package. 4. Public: The access level of a public modifier is everywhere. It can be accessed from within the clas...