This is one of the most commonly asked interview questions. Now that we have learned What is Abstraction and What is a Class, we are ready to learn what is an abstract class in Java. If anyone is not clear about abstraction, then I do insist that first read my previous post of What is Abstraction....
Creating of Objects is a very easy thing, if you understand the actual processing going on at the back end. Understanding how to create a new Object is essential for getting a good hold on the Principle of OOPS and Java itself.
For creating a new Object in Java, we use the keyword “new”....
Boolean Data Type is one of the most useful data type, when you need some sort of definitive action. Like it has to be a yes or no, nothing in between. It is exactly like binary, where the numbers could be 0 or 1, nothing else. Boolean Data type is one of the four groups of data types in Java which are...
The data types in Java can be categorized in four categories. Character Data Types is the third category after Integer Data Types and Floating Point Data Types.
In Java the Character Data type is of single type. It is:-
1. char (16 bits) (range: 0 to 65535)
We will discuss this data type of Java in detail...
As I have promised in my previous article, that i will discuss all the data types in Java. So here I am back again, with the second data type in Java known as the Floating Point Data Types. Floating point data Types are useful when dealing with fractional values and are actually linked with the “real”...
As I have promised in my previous article, that i will discuss all the data types in Java. So here I am back again, with the second data type in Java known as the Floating Point Data Types. Floating point data Types are useful when dealing with fractional values and are actually linked with the “real”...
Integer Data types are the most commonly used data types in Java. They provide the developers with an extraordinary power to deal with numbers. The Integer data types are the ones which deal with whole numbers.
The integer data types in Java is of four types. They are :-
1. byte (8 bits) (range: -128...
You will come to know that Java care about its variables, and would not allow a larger value in a smaller variable. Every variable in Java can be classified as:-
1. Primitive
2. Reference
The data types in Java are concerned with the Primitive type variables, and I will only discuss these in this article....
Java Virtual Machine(JVM) is a program specific to Java used for executing Java Bytecode. The compiler converts the Java Source Code into Java bytecode.
The main advantage of JVM is that, once a code is written and compiled on any platform, then it could be executed on the same on any other platform....
Java Source Code is simply the code you write in Java. There are many editors available right now for writing Java Code. The most simple editor for writing Java Source Code is the “Notepad” provided by Windows.
There are many pioneers in Java Technology, in industry major of the Java applications...
Understanding the functionality of the Java Compiler helps in understanding the processing at the back end of Java. A Java Compiler compiles the source code in Java and converts it into Bytecode which is used by the JVM in running the application.
In case of most of the programming languages like C,...
Java Package is a very convenient way of grouping similar classes, or classes having similar functionality. Java is a pile of classes, innumerable if you go on reading one by one. It would be impossible to remember every class, just by the name of the class. So what Java does is that group them together...
Java is one of the most powerful tools available for programming right now. Java was originally created by James Gosling. Originally names as “Oak”, it was named as “Java” in 1995. Java was built on the Principle of OOPS, which actually provided it a very robust structure.
Java...