Data Type

In previous tutorial we read about variables. We also know that variables have size and type. Now, what’s that? Why bother about type and size? Java cares about type. It won’t allow you to do something bizarre and dangerous, like stuff a Chocolate reference into a Cold-drink Variable, or stuff an aircraft reference into a … Continue reading Data Type

Requirements to run Java

Before we discuss what are the basic requirements to run java file we need to know how java works. Suppose, we write a Java program (on any platform). First, we need to compile the program. Therefore, JVM compiler (called javac) generates a byte code (bytecode files use the extension .class). However, bytecode is not … Continue reading Requirements to run Java

Features of Java

  Simple: It uses C++ syntax. It has Automatic garbage collection. It has no pointers (Explicit). Object-Oriented: It deals with objects which has data and methods. Java can be easily extended since it is based on the Object model. Includes basic concepts of OOPs: (will learn all these terms in further tutorials). Portable: Byte-code can … Continue reading Features of Java