Java Programming



Introduction to Java


Thinks to know;

  • Most popular language

  • Java are object oriented language,

  • It was created in 1991, and publicly released in 1995

  • Developed by James Gosling at Sun Microsystems

  • Java was later acquired by Oracle

  • Simple and Easy to use

  • Write Once and Run anywhere

  • tt

  • tt

  • tttt

  • tt



Usage

/

What is use for

  • Web Development

  • Desktop Development

  • Mobile Development

  • Game Development

  • Databases

  • Distributed Processing





Features of Java




Strong Type-cheking

Multi-Tthreading

Compile & interpret

Garbage Collector



How a Java Program is Run


  1. Java Program

  2. Java Compiler

  3. Bytecode

  4. Windows, Linux, MacOS





Anatomy of Java


  1. JDK (IDE for Java)

  2. JRE

  3. JVM, Class Libraries, Other Libraries






Primitive datatypes in Java


Java some primitive datatype.


Some of them store: Number, Briliance Value, Characters


The data type thyat store Number are;

  • byte

  • short

  • int

  • long

  • flaot

  • double

  • ttt


They are basically use to store any kind for Numeric Value

  • byte is the shortest possible data type value

  • byte, short, int and long are use for storing integer value

  • flaot and double are usually use which as decimal

  • flaot can store a smill possitions value and double bigger


boolean are the true or false value

char are use to storing characters


Non-Primitive Datatype

When we used non-primitive we talk aboutttttt