There are operators used for performing Mathematical and Logical operations in Java. They are Arithmetic, Assignment, Bitwise, Compound, Increment/decrement, Relational, Ternary, Logical Operato...
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 :
...
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)&nbs...
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...
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 Environmen...
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...