Friday 10, February 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    Forum    |    About Us    |    Contact Us

Data Types

Java variables are assigned a data type in one of four basic categories:

  1. Arithmetic (fixed or floating point numbers)
a)      byte (1 byte)
b)      short (2 bytes)
c)      int (4 bytes)
d)      long (8 bytes)
  1. Character (actually two byte Unicode characters)
  2. Boolean (true or false)
  3. Access (a cross between a pointer and a handle)

 

Character:

Java character variables and strings support the international two byte character set commonly known as Unicode. This allows strings to hold not only has all the characters in Western and Eastern Europe, but also Hebrew, Arabic, Cyrillic, and 30,000 characters belonging to Chinese/Japanese/Korean. The first 128 codes of the Unicode standard are the ordinary ASCII characters. ASCII characters are converted to Unicode by simply adding a high order byte of zero, and the Unicode representation of ordinary ASCII characters can be converted to plain ASCII by just dropping the high order byte.

 

Boolean:

A variable of type boolean has the possible values true or false. Unlike other languages, boolean values are not associated with 0 or 1, may not be converted directly to any number, and have no ordering.

 

 
     
   
Java Language Tutorial
 
  What is JAVA
What is JAVA
  Java an Object Oriented Language
Java an Object Oriented Language
  Java Keywords
Java Keywords
  Data Types
Data Types
  Java Operators
Java Operators
  Control Structure
Control Structure
  Arrays
Arrays
  Java Classes
Java Classes
  Java Constructors
Java Constructors
  Java Methods
Java Methods
  Java Method Overloading
Java Method Overloading
  Java Method Overriding
Java Method Overriding
  Java Nested Classes
Java Nested Classes
  Inheritance in Java
Inheritance in Java
  Interfaces in Java
Interfaces in Java
  Polymorphism in Java
Polymorphism in Java
  Exception Handling in Java
Exception Handling in Java
  Catching Exceptions
Catching Exceptions
  Embedding information in an exception object
Embedding information in an exception object
  The throws clause
The throws clause
  Checked and unchecked exceptions
Checked and unchecked exceptions
  The finally clause
The finally clause
  Applets in Java
Applets in Java
  Running an Applet
Running an Applet
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download The Smart Marketers Resource Handbook Ebook The Smart Marketers Resource Handbook
   
Download List Building For Beginners  Ebook List Building For Beginners
   
Download Creating Wealth Boot Camp Ebook Creating Wealth Boot Camp
   
Download Art of Programming Contest  Ebook Art of Programming Contest
   
Download Linux Internals (to the power of -1)  Ebook Linux Internals (to the power of -1)
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz