Breaking News

Wednesday, 11 May 2016

Introduction

Java Programming Tutorials




INTRODUCTION

Java is a high-level programming language originally developed by James Gosling at Sun Microsystems, which is now a part of Oracle Corporations. 
Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented.  The language has developed much of its syntax from C and C++. Java applications are usually compiled to bytecode (class file) that can run on  any javavirtual machine, which makes developers to write once and run anywhere.
Features of Java:-
1. Java is Simple and Object Oriented:
·         Object Oriented Programming is a paradigm that provides many concepts such as inheritance, data binding, polymorphism etc.
·         Object Oriented Method combines data and Instructions for processing that data into a self-sufficient ‘object’ that can be used within a program or in other programs.
·         Objects are modeled on real world entities and This enables modeling complex systems of real world into manageable software solutions.

2. Java is Robust and Secure:-
  • Java is built with OOP's Concepts making it a robust programming language.
  • Java has its own automatic garbage collection, which prevents memory leaks and extensive compile-time checking so bugs can be found early; this is repeated at runtime for flexibility and to check consistency.
  • Java's memory allocation model is one of its main defenses against malicious code(e.g. can't cast integers to pointers, so can't forge access).
  • Furthermore, access restriction are enforced(public , private), byte codes are verified, which copes with the thread of a hostile compiler.
3. Java is Architectural Neutral:- Java compiler generates bytecodes, which have nothing to do with a particular computer architecture and easy to interpret on any machine.

4. Java Support Multithreading:-
  • Java allows multiple concurrent threads of execution to be active at once. This means that you could be listening to an audio clip while scrolling the page and in the background downloading an image.
  • Java contains sophisticated synchronization primitives (monitors and condition variables), that are integrated into the language to make them easy to use and robust.
  • The java.lang package provides a thread class that support methods to stat, run, and stop, and check on its status.
5. Java is Dynamic:- Java was designed to adapt to an evolving environment:
  • Even after binaries have been released, they can adapt to a changing environment.
  • Java loads in classes as they are needed, even from across the network.
  • It defers many decisions(like object layout) to runtime, which solves many of the version problems that C++ has.
  • Dynamic linking is the only kind there is.

6. There are many types of Java Programs such as Java Applets, Application, Jar File, Servlet, Swing Application, EJB and many more.



No comments:

Post a Comment

Designed By Published.. Blogger Templates