Skip to main content

Posts

Showing posts from August, 2013

DATA TYPE AND OPERATOR IN JAVA

Data types in java:             For storing different type of data we have data types. Java defines eight types of data: byte, short, int, long, float, double, char and boolean. Integers: This group includes byte, short, int, and long, which are for signed and unsigned number including zero. Floating-point numbers: This group includes float and double, which can store numbers with fractional precision. Characters: This group includes char, which represents symbols in a characterset, like letters and numbers. Boolean: This group includes boolean, which is a special type for representing true/false values. NOTE:  The data types mentioned above are primitive data types. Java also support reference data types like Array, Class and Interface. 1. Integers:                      ...

INTRODUCTION TO JAVA

History of java:                         In 1991, Sun Microsystems was attempting to develop a new technology for programming next generation smart appliances. The original plan was for the Star7 operating system to be developed in C++ but rejected the idea for several reasons. As a result we have new language that was better for the purposes of the Green project than C++ developed by Gosling. He called the language Oak in honor of a tree that could be seen from his office window. James Gosling was part of Green, an isolated research project at Sun that was studying how to put computers into everyday household items like thoughtful toasters, sagacious Salad Shooters and lucid lamps. The group also wanted these devices to communicate with each other. In January 1995, The meeting, arranged by Kim Polese (marketing person) where about a dozen people got togethe...