category

home / developersection / category

Inheritance in Java: What is Inheritance?
java 16-May-2016
Inheritance in Java: What is Inheritance?

All of us have observed inheritance in nature. For example, a baby inherits the characteristics of her parents; a child plant inherits the characteristics of its parent plant, and so on.

Inheritance in Java: Object Creation Process
java 16-May-2016
Inheritance in Java: Object Creation Process

To better understand the object-creation process, let’s begin with a simple case of two-level inheritance, where we have just a base class and its derived class.

Method Overloading
java 16-May-2016
Method Overloading

In our example of the previous post, the classes Asset, BankAccount, and SavingsAccount defined two constructors. Both constructors obviously have the

Inheritance in Java: Instantiating a Subclass
java 16-May-2016
Inheritance in Java: Instantiating a Subclass

In the previous post, we learned how to create a single-level class hierarchy of an arbitrary depth. We created an asset management system, and the top-level class in this system was Asset.

Class Concepts in Java (Part-1)
java 13-May-2016
Class Concepts in Java (Part-1)

IntroductionA class is a template that encapsulates data and the methods that operate on this data, as in the Employee or Automobile class described e

Encapsulation in Object Oriented Programming (OOPS)
java 13-May-2016
Encapsulation in Object Oriented Programming (OOPS)

Another big concept associated with object-oriented programming is encapsulation. Every class contains some data in its fields. We hide these fields by declaring them private. We define getter/setter methods to access them.

Information Hiding in Object Oriented Programming (OOPS)
java 13-May-2016
Information Hiding in Object Oriented Programming (OOPS)

In our everyday life, many of us oftentimes try to hide information from other people. In many situations, the information hiding is an essential part of our life.

Features and Benefits of Object Oriented Programming (OOPS)
java 13-May-2016
Features and Benefits of Object Oriented Programming (OOPS)

It is a good practice to provide a coupling between the data and the methods that operate on the data (method is another name for a function or a procedure, also called an operation).

JDK 1.0: Code Name Oak
java 11-May-2016
JDK 1.0: Code Name Oak

So far, in previous posts, we have discussed the features of Java referring to its very first version, JDK 1.0. Over time, Java has grown and expanded a lot and has had many new features added to its repertoire.

Features of Java: Platform Independent and Multi-threaded
java 11-May-2016
Features of Java: Platform Independent and Multi-threaded

Platform IndependentA major benefit that is derived out of the introduction of a JVM is the resulting platform independence for a Java executable. As

Features of Java: Dynamic, Complied and Interpreted
java 11-May-2016
Features of Java: Dynamic, Complied and Interpreted

In my previous post, we have seen how java is so flexible and simple, while very small and yet equipped with powerful features like Object Oriented principles (OOPS).

Evolution of Java Programming Language
java 10-May-2016
Evolution of Java Programming Language

The Java programming language was originated and developed at Sun Micro systems under the guidance of Net luminaries James Gosling and Bill Joy, was d