break statement
In several instances, such as an error or incorrect input from the user, it may be necessary for the flow of control to exit from a loop statement. To accomplish this, Java provides a jump statement called break statement.
The break statement forces the control to come out from a switch statement, a while loop, [...]
Search Results
Java – Jump Statements
January 22, 2007 · 9 Comments
Tags: Java
OOP Concept – Polymorphism
November 8, 2006 · 17 Comments
Overview
Polymorphism means one entity existing in multiple forms. It provides flexibility to application systems. It simplifies coding and reduces the rework involved in modifying and developing an application. It refers to the ability of an object to take on different forms depending upon the situation.
According to the polymorphism design principle, the same message [...]
Tags: OOP Concepts
OOP Concept – Inheritance
November 8, 2006 · 11 Comments
Basics
Different kinds of objects often have a certain amount in common with each other. Tiger & Cow, for example share the characteristics of Animal; Yet each also defines additional features that make them different. Object-oriented programming allows classes to inherit commonly used state and behavior from other classes.
Inheritance provides a way to extend [...]
Tags: OOP Concepts
Objects And Variables
November 6, 2006 · 2 Comments
Instantiating an Object
An Object is an instance of a Class. After creating an Object, you can access the member variables and methods of the object and assign values to them. An Object is declared in the same way that a variable of a primitive type is declared.
String sampleStr; //This code is used to define an [...]
Tags: Java
OOP – Introduction
November 6, 2006 · 30 Comments
Advantages of OOP
OOP provides advantages over traditional structural programming languages. OOP facilitates writing applications by turning real-world objects into code components. OOP enables users to model real-world objects. Modeling means representing real-world objects as components in Java. Object-Oriented Programming allows programmers and customers to use the same terminology to explain the business [...]
Tags: OOP Concepts
Classes, Methods and Objects
October 20, 2006 · 6 Comments
Classes and Objects
The idea of Object-Oriented Programming (OOP) is to place data and methods together in a single entity. The single entity holding the data and methods is called a class. An Object is an instance of a class.
To create a Java application, you organize programming structures by creating classes that consist of [...]
Tags: Java


