Online Examination System for all learner!!! coming soon..

Showing posts with label java features. Show all posts
Showing posts with label java features. Show all posts

JAVA : Features of JAVA

Object-oriented programming:

  • This is the core feature of java.
  • This is to manage the increase in the complexity.
  • It provides a very sophisticated and well defined interface for the data.
  • It is also known as data controlling access code.
  • Another important feature of java being object oriented is abstraction.
  • Complexity can be managed using abstraction.

The three OOP principles:

  • Encapsulation- Its agenda is to manipulate the data and keep the data isolated and safe from the external interference and misuse. The encapsulation is done by the use of the protective wrapper. This prevents the external sources from accessing the data or the code.
  • Inheritance- In this the object would acquire the property of other object present. Itjust follows the concept of the hierarchical classification. This consists of classes, sub classes. Inheritance also is linked or interacts with encapsulation as well.
  • Polymorphism- It is means many ways to carry out the method but from one input.
 Byte code
This is highly optimized by set of instructions designed which is designed to be executed by Java virtual machine that is JVM.

JVM

  • It was designed as an interpreter for the byte code.
  • Another feature of java program is that it is simple.
  • This enables the professionals to learn.
  • Work in a very effective manner but it is also very easy to understand.

Robust

The ability that includes creating a robust program that can be a multiplatform program
are given a very high priority in design of Java.

Multithreading

The real world requirements are met by java which helps to achieve the requirement of
creating interactive and networked programs.

High performance

  • The advantage of being a multi platform functioning program helps to find the cross platform solution. 
  • It provides benefits of being an platform independent code with the help of java run time system.

Distributed

  • This is because it is been designed for the internet which has a distributed environment because of the handling of TCP/IP protocols.
  • This allows the program to find out methods across a network.
  • URL is used in this to access a file on internet.
  • This property supports RMI (Remote Method Invocation).

Dynamic

  • This is the action that is taken during the run-time such as to resolve, verify and add objects.
  • It provides us the function which will allow us to link code dynamically that will be safe.

Simple program

/* Call this file “Example.java” */
Class Example {
Public static void main (string args []) {
System.out.println (“this is a simple java program.”);
}
}

Command line argument to pass the class name is
C :\> java Example
Simple output of the above program
this is a simple java program.
Calling of the file in java cmd
Calling of the file: “Example.java”. 

Related Questions: 

  1. How JAVA differs from C++

JAVA : Introduction

  • Java was designed and conceived by James Gosling, Patrick Naughton, Chris Warth, Ed Frank and Mike Sherdan, which was done at Sun Microsystems in year 1991.
  • It took almost 18 months for java to come into existence as a working version.
  • Initially java was known as “Oak”, which was then renamed as “Java” in year 1995. Since java had much had much of its character designed from C and C++.
  • This character inherited by the two well known and simple programming makes java more appealing to computer and it giants which would lead to a large scale success.
  • But java is misunderstood as the sophisticated internet version representation of C++.
  • It has significant difference practically and philosophically when compared to C++.
  • If you have good knowledge in C++ then you will find java as your cup of tea and you will at ease using and understanding java.

Therefore, there are two main reasons for the evolution of the computer languages. Java had enhanced and refined the object oriented scenario of C++. This gave more features to the users which are as follows:

  •  Multithreading.
  • Library which would provide easy internet access.
  • One of the java’s magic was the byte code. Byte code is set of instruction which is highly optimized and designed to be executed by JVM (Java Virtual Machine). It is an interpreter for byte code. This lead to the design of truly portable programs.

Java redesigned the internet with new feature and networked program which are as follows:

  • Applets - It is a kind of java program that is to be transmitted over and executedautomatically by java compatible web browsers.
  • Security - It provided the security of downloading various applets and programs from internet without containing any virus or Trojan horses.
  • Portability- Since there is large and different kind of operating systems therefore it provides the freedom of running in any operating system so its program can be used in different OS without any issues of compatibility.

The evolutions in java are as follows:

  • Java 1.0
  • Java 1.1
  • Java 1.2
  • J2SE
  • J2SE 1.2
  • J2SE 1.3
  • J2SE 1.4
  • J2SE 5
  • J2SE 5 made various changes to Java 

The new feature that was added is as follow:

  • Generics
  • Annotations
  • Auto boxing and auto-unboxing
  • Enumerations
  • Enhanced, for-each style for loop
  • Variable-length arguments
  • Static import
  • Formatted I/O
  • Concurrency utilities
 In J2SE 5, and the developers kit was called JDK 5. 1.5 used as internal version numberand this is referred as developer version number.Java became the center of innovation in computer technological world. The existence ofJVM and byte code changed the scenario of security and portability in the programmingworld. The way the new ideas are put into the language has been redefined by the JCP i.e.java community process.
<<Previous                        Downlod PDF                        Next>>

Related Questions:


    C Programming Online Test 1

    Following quiz provides Multiple Choice Questions (MCQs) related to C Programming Framework. You will have to read all the given answ...