Choose Language

Monday 26 November 2012

5.1 Operators in Java | Arithmetic Operators


There are operators used for performing Mathematical and Logical operations in Java. They are Arithmetic, Assignment, Bitwise, Compound, Increment/decrement, Relational, Ternary, Logical Operator.

Sunday 25 November 2012

4.1 Primitive Data Types in Java

Data type defines a set of permitted values on which the legal operations can be performed.
In java, all the variables needs to be declared first i.e. before using a particular variable, it must be declared in the program for the memory allocation process. Like

 int pedal = 1;

This statement exists a field named "pedal" that holds the numerical value as 1. The value assigned to a variable determines its data type, on which the legal operations of java are performed. This behavior specifies that, Java is a strongly-typed programming language.

The data types in the Java programming language are divided into two categories  and can be explained using the following hierarchy structure :

Thursday 8 November 2012

4. Creating a Simple Java Program

 
This post features Compiling and Executing a Sample Java Program. Before that, Lets look on to the sample java code.

You can use any Text Editors such as notepad, textpad, ultraedit, Our recommendation is to use notepad if you are a windows based user. For testing purpose, you enter the following code in your notepad and save it with a filename (any name) 

3. Java Versions, Classification and Features



Versions:

Java has several versions starting from 1.0 to the recent 1.7 (Current Version). From 1.0 to 1.4 there is not any more modifications.
Some of the new concepts added between versions 1.4 and 1.5. Some of them are as follows,
  • enum
  • varargs
  • For-each
  • Auto-Boxing and Unboxing
  • Generics

Sunday 4 November 2012

2. Installing Java and Setting Path



Download and Install Java 1.6

To compile and run a java program we need to install java platform. JDK (Java Development
Kit). JDK is the basic set of tools required to compile and run java programs. This section enables you to download JDK and teaches you the steps to install it. Whereas Java SE means Java Software Environment.

Saturday 13 October 2012

1. Introduction to Java


Java programming language was originally developed by Sun Microsystems, which was initiated by team headed by James Gosling and released in 1995 by Sun Microsystems The Java platform (Java Ver 1.0 [J2SE]).

Java is:

Object Oriented : In java everything is an Object. Java can be easily extended since it is based on the Object model.

Platform independent: Unlike many other programming languages including C and C++ when Java is compiled, it is not compiled into platform specific machine, rather into platform independent byte code. This byte code is distributed over the web and interpreted by virtual Machine (JVM) on whichever platform it is being run.

Simple :Java is designed to be easy to learn. If you understand the basic concept of OOP java would be easy to master.

Secure : With Java's secure feature it enables to develop virus-free, tamper-free systems. Authentication techniques are based on public-key encryption.

Architectural- neutral :Java compiler generates an architecture-neutral object file format which makes the compiled code to be executable on many processors, with the presence Java runtime system.

Portable :being architectural neutral and having no implementation dependent aspects of the specification makes Java portable. Compiler and Java is written in ANSI C with a clean portability boundary which is a POSIX subset.

Robust :Java makes an effort to eliminate error prone situations by emphasizing mainly on compile time error checking and runtime checking.

Trending Now. . .

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by RANDJITH | Bloggerized by Randjith - Subscribe to Learn in Tamil | coupon codes