Java Tutorials
361. Java magic
By: aathishankaran : 2007-02-01
Description: The key that allows java to solve both the security and the portability problems just described is that the output of a java compiler is not executable code. Rather, it is byte code, byte code is a highly optimized set of instructions designed to be executed by the java runtime system, which is called the java virtual machine (JVM). That is, in its standard form, the JVM is an interpreter for byte code, this may come as a bit of a surprise. As you know, C+++ is compiled to executable code. In fact, most modern languages are designed to be compiled, not interpreted mostly because of performance concerns. However, the fact that a java program is executed by the JVM helps solve the major problems associated with downloading programs over the Internet. Here is why.
362. Object-Oriented Programming
By: aathishankaran : 2007-02-01
Description: Object-oriented programming is at the core of java. In fact, all java programs are object-oriented this isn't an option the way that it is in C++, for example. OOP is so integral to java that you must understand it basic principles before you can write even simple java programs. Therefore, this chapter begins with a discussion of the theoretical aspects of OOP.
363. J2EE is yet another acronym in the world of computing
By: aathishankaran : 2007-02-01
Description: J2EE is yet another acronym in the world of computing. This one stands for Java 2 Platform, Enterprise Edition. Its significance will become clear once we trace its lineage. First of all, Java is a programming language developed by Sun Microsystems, one of the giants of the industry. The Java Platform is a virtual machine, a processor look-alike that translates computerized instructions into functions.
364. The data types in java
By: aathishankaran : 2007-02-01
Description: Java defines eight simple (or elemental) types of data: byte, short, int, long char, float, double, and Boolean. These can be put in four groups:
365. Floating-Point Types in java
By: aathishankaran : 2007-02-01
Description: Floating-point numbers, also known as real numbers, are used when evaluating expressions that require fractional precision. For example, calculations such as square root, or transcendentals such as sine and cosine. Result in a value whose precision requires a floating-point type. Java implements the standard (IEEE-754) set of floating-point types and operators.
366. Characters in java
By: aathishankaran : 2007-02-01
Description: In java, the data type used to store characters is char. However, C/C++ programmers beware: char in java is not the same as char in C or C++. In C/C++, char is an integer type that is 8 bits wide. This is not the case in java. Instead, java uses Unicode to represent characters. Unicode defines a fully international character set that can represent all of the characters found in all human languages
367. Booleans in java
By: aathishankaran : 2007-02-01
Description: Java has a simple type, called Boolean, for logical values. It can have only one of two possible values, true of false. This is the type returned by all relational operators, such as a
368. Using Blocks of Code
By: aathishankaran : 2007-02-01
Description: Java allows two or more statements to be grouped into bocks of code, also called code blocks. Enclosing the statements between opening and closing curly braces does this. Once a block of code has been created, it becomes a logical unit that can be used any place that a single statement can. For example, a block can be target for java's if and for statements. Consider this if statement:
369. The OOP Principles
By: aathishankaran : 2007-02-01
Description: All object-oriented programming languages provide mechanisms that help you implement the object-oriented model. They are encapsulation, inheritance, and polymorphism. Let us take a look at these concepts.
370. The features in java
By: aathishankaran : 2007-02-01
Description: Although the fundamental forces that necessitated the invention of java are portability and security, other factors also played an important role in molding the final form of the language. The key considerations were summed up by the java team in the following list of key words