Search This Blog

Thursday, April 12, 2018

Java || learn Java programming

JAVA


Introduction:

     Java ias a simple and yet powerful object oriented programming language and it is in many respects similar to C++.

Java is created by James Gosling from Sun Microsystems(Sun) in 1991. The first publicly available version of java (java1.0) was released in 1995.

Java is defined as a specification and consists of a programming language, a compiler , core libraries and a runtime machine (-Java virtual machine)

Uses of Java

Java is also used as the programming language for more different software , games, and add-ons.

Features of Java


  1. Simple
  2. Object-oriented
  3. Platform independent
  4. Secured
  5. Robust
  6. Architecture neutral
  7. High performance
  8. Portable
  9. Multithreaded
  10. Distributed

Variables


A variable provides us with named storage that our program can manipulate.
Folllowing are some valid examples of variables:

int a,b,c;
//declares three int, a,b,c

double pi=3.14159
//declaresand assigns a value of pi

Constant:


 During the execution of program, value of variable may change. Aconstant represents permanent data that never changes.

Imprtant Questions related Java

  1. List any five features of Java?
       Object oriented, platform independent, robust, interpreted,multi-threaded.


No comments:

Post a Comment