Tag Archives: OCJP

Java Virtual Machine Run-Time Data Areas

By | July 24, 2014

This article contains… Overview of run-time data areas, Details of run-time data areas, Exception conditions with run-time data areas, Monitor JVM runt-ime data areas.

Polymorphism in Java

By | March 30, 2014

This article contains… What is Polymorphism ? Reference variable types and Object Example of Polymorphism Runtime and Compiletime Polymorphism Example of both SCJP exam objective 5.2

Inheritance, IS-A and Has-A

By | February 28, 2014

Contents : IS-A relationship in OOP (Inheritance) Has-A relationship (Association) Different type of Association : Aggregation and Composition Example of each type SCJP exam objective 5.5

Unit 2 (Prog 6) : Inheritance in JAVA

By | February 10, 2014

Content : What is Inheritance ? Example of Inheritance. Reason to use Inheritance. What you can do in child class ?

Unit 2 (Prog 8) : Encapsulation in JAVA

By | February 1, 2014

Content  : What is Encapsulation ? Difference between Information hiding and Encapsulation. How to implement : Example of Encapsulation Why we need Encapsulation ?

Unit 5 (Prog 1) : Introduction and Basics of String

By | October 18, 2013

In this example, you will find the basic structure and concepts of Java.lang.String with code example and description. /   Java Library provide three class to handle Strings  * String, StringBuffer and StringBuilder  * In this section, the details and working of String class is included, however we will discuss the further parts in upcoming sections.… Read More »

Unit 3 (Prog 1) : Test Initialization of Local and Instance Variables.

By | June 27, 2013

In this example, you will find the details and concept of Local and class variables, initialization and their scope. /*  * local variable must be initialized before attempt to use them.  * Java will initialize instance variable for you !!!  * Java does not give local variable a default value.  */

Unit 2 (prog 7) : Test clone() method

By | June 19, 2013

In this Example, you can find the Cloneable interface and Clone method usage in java. and also various ways to create object in java. /*  * Object cloning is a way to create exact copy of an object.  * To use clone() method of java.lang.Cloneable interface, class must implement it else CloneNotSupportException will be thrown.… Read More »

Unit 8 (Prog 2) : Test Inner Class 2nd

By | June 13, 2013

In this example you will find Anonymous Inner class concepts, Inner class concepts in java, and also some tricks about Interface. /*  * TestAnonymousInnerClass.java  *  * This Example includes…  *          1. Method inside Interface with body.  *          2. Inner Class inside Interface.  *          3.… Read More »

Unit 8 (Prog 1) : Test Inner Class

By | June 11, 2013

In this example, you will find the concept of Inner class in java, how to declare and access the inner class properties. Access modifiers and their effect on inner class properties. Java doc for Inner class in given Here : Inner class in java