Thursday 5 July 2018

PROGRAMMING LANGUAGE JAVA


PROGRAMMING LANGUAGE (JAVA)

About  JAVA ..
  • Java is a case sensitive language.
  • Java is nearly 100% object oriented language.
  • In JAVA, it is not possible to make a function which is not a member of any class.

HISTORY of JAVA
  • Java was developed by james Gosling  at Sun Microsystem, inc.
  • Java originated at Sun Microsystems, inc.in 1991.
  • Vinod Khosla was the Co-founder of Sun Microsystems.

Importance of JAVA.
  • Java resides in obiles, client machines, server machines, embedded devices, smart phones, cloud etc.
  • It shares the same basic features of the language and libraries.
  • Principal of JAVA : Write Once, Run Anywhere(WORA).
What is Library 
  • Java library is as collection of predefined classes.
  • You can use these classes either by inheriting them or by instanting them. 
JAVA Flavours (Types)
  1. JAVA SE ( core java)
  2. JAVA EE ( Advanced java)
  3. JAVA ME (Micro edition for mobiles)
FEATURES OF JAVA
  • Simple.
  • Object Oriented Language.
  • Distributed.
  • Interpreted.
  • Robust.
  • Secure.
  • Portable.
  • Multi-threaded.
  • Garbage Collector.
Data Tpyes..
  • A type identifies a set of value(and their representation in memory) and a set of operations that perform these values into other values of that set.
  • JAVA is stronglt typed language.
PRIMITIVE TYPE Data Type
These are the Data Types of java programming.
 In this each data type has own meaning such as 
  1. boolean       Its just check statement is true or false.
  2. char             Its use for single characters ( 'A').
  3. short            Its use to store for real numbers in only 2 btye. ( 1 byte = 8 bits)
  4. int                Its also use for store to real number in 4 bytes. 
  5. long             Its also use for store to real number in 8 bytes.
  6. float             Its use to store decimal (floating number such as 4.8, 3.5) values in 4 bytes. 
  7. double         Its used for store both real and decimal number in 8 bytes.
Examples:
  •  int x;
  • double temp;
  • string name;
  • int [] ages;
  • char letters[];
CONSTANTS
  • integer constants consists of a sequence of digits.
  • If the constants is to represent a long integer value, it must be suffixed with an uppercase L or lowercase l.
  • If there is no suffix the constant represent 32 3bit integer (an int).
  • Integer constants can be specified in the decimal , hexadecimal, octal, or binary format.
               127           ( deciaml number )
               0x7f          ( hexadecimal ) there is 0x is just a sign to show hexadeciaml number and f = 15 
               0122          ( octal )  there is 0 is just to show octal number 
              0b01010110       ( binary ) there is 0b is just to show that it is in binary. and binary number is                                                 always written in 0 and 1 .  

CONVERSION  IN JAVA
  • Every expression written in the java programming language has a type that can b decuded from the structre of the expression and the types of the literals, variables, and methods mentioned in the expression.
Permitted Conversions 
  • byte to short, int, long, float or double.
  • short to int, long , float or double.
  • char to int, long float or double.
  • int to long, float or double.
  • long to float or double.
  • float to double.
Example

https://chat.whatsapp.com/LQwOhM1jvx25uNG5LXxU2f
If you are interested in this and want to leanr more about Internet Networking Programming language and Technologies then join my whatsapp group by this link..


we buy cars for cash cash for car cash for cars cash cars we buy junk cars buy junk cars sell my junk car near me sell my car for cash sell car for cash sell my car for cash today cash 4 cars we buy cars for cash Car Removals Sydney https://unwantedcarremovalsydney.com.au Cash for Scrap Cars Service Unwanted Car removals Car Removal Sydney Car Removal Car Removals Car Removals Sydney Car Removals Sydney

4 comments:

( DIGITAL INDIA ) DIGITAL NETWORKING SERVICE

DATA COMMUNICATION AND NETWORKING With the advancement of Data Communication facilities the communication between computers has increa...