button51633636 - Introduction to Java

Introduction to Java

Posted on
Introduction to Java

Half 1 Contents :

  •     Historical past of Java
  •     What’s JDK
  •     Options of Java
  •     Pattern program 


Historical past of Java

Java is Object oriented, Multi-threading language developed by Solar Microsystems in 1991.

It’s designed to be small, easy and transportable throughout completely different platforms in addition to OS.

What’s JDK

JDK stands for Java improvement Equipment.

There are two elements: Java Compiler and Java Interpreter (JVM).

Java Compiler generates bytecode as an alternative of machine code and interpreter executes java

program. 

What’s bytecode?

Bytecode is a set of directions that resemble machine code however usually are not particular to any

processor.

The drawback of utilizing bytecode is the execution velocity. Since system particular applications

run instantly on the {hardware}, they’re sooner than the Java bytecode. 

Options of Java

  1. Syntax based mostly on C++
  2. Object-oriented
  3. Help for Web functions
  4. Intensive library of prewritten lessons
  5. Portability amongst platforms
  6. Constructed-in networking
  7. Safety as JRE is inaccessible to different elements of laptop. 

Class 

  • Device for encapsulating information and operations (strategies) into one package deal
  • Defines a template or mannequin for creating and manipulating objects


Objects

  • Knowledge created utilizing the category and its strategies
  • An object is an occasion of the category
  • Creating an object is instantiation

OOP : Benefit

  • Nicely-written lessons will be reused in new functions
  • Shortens improvement time as a result of programmers don’t want to put in writing new code
  • Applications are extra strong as a result of the category code is already examined

  

button51633636 - Introduction to Java

Supply projectgeek.com