Archive for: July, 2014

Java Basic IDE Setup

An integrated development environment (IDE) is a software application that consists of a code editor, compiler, debugger, version control and other tools required for the software developer to build applications. There are many open source IDEs currently available in the market for developing Java applications. List of Integrated Development Environments: Eclipse Netbeans BlueJ Geany JCreator Servoy IntelliJ IDEA Dr.…

Read More →

Java Variables, Datatypes & Keywords

Before we write our first Java program, we shall first start with the definition ofVariables & Keywords and their uses. What is a Variable?  A variable is a container which has a size, and a datatype and it is used to hold primitive data or reference to objects. Each variable has a memory location to store its data or value. The variables which holds…

Read More →

Java Class, Object & Methods

In this chapter we learn about the Class, Object, Access modifiers, Non access modifiers & Methods. What is a Class? A Class is defined as the template or blueprint for an object. It defines the states and behavior of that object. When a class is created, we are letting the JVM know that how to make an object of that type. Apart from the…

Read More →

Java Modifiers

Modifiers are the keywords that are used in java for definition of variables, classes or methods. What are the access modifiers? public, protected and private are the three access modifiers used in Java. public – Can be accessed anywhere in classes from same package or in other packages. private – Can be accessed only within the same class. protected – Can…

Read More →

Java Operators

Operators are used in java along with the variables to achieve arithmetic, logical, conditional & relational functionalities. There are different types of operators available as below. Types of Operators: Assignment Operator Arithmetic Operators Relational Operators Conditional Operators Unary Operators Type Comparison Operator Bitwise Operators Equality Operator   Assignment Operator: (=) It is used to assign any…

Read More →

Java Loops & Conditions

There are basically two types of Control Structures. They are the Decision Control structures and Repetition Control structures. These structures determines the order in which the statements in the program are executed. Decision Control structures: These structures executes a specific block of code if the given condition is true. There are three different types of decision control…

Read More →

Java Arrays & Enum

An array is used in java to hold multiple items of a particular datatype. Each item in it is a variable of same datatype which holds value. There will be a place where we might be needing many variables to hold different values and it will become a tedious process to use everything in the…

Read More →

Java Exceptions

Sometimes the program may fail at a particular line due to invalid input, or invoking another application’s method which is down will lead to blow up the entire program. If we know these statements are risky in nature then, we need to handle it. This process is said to Exception Handling. Exception Handling: By default,…

Read More →

Java Inheritance

Now its time for us to get into Java Object Oriented Programming concepts (OOP). Inheritance is defined as defining the common features (eg. variables & methods) in a single class and reusing them by using the sub objects. Sub objects means the sub classes which inherits the common feature class. Inheritance: Parent Class – The…

Read More →

Java Overriding

Overriding is one of the important concept in Polymorphism. In Inheritance, say if a sub class has different implementation of one of the certain method in the parent class, then it needs to be overrided in the sub class. Overriding: The overriding method in the subclass should have same name, number and type of parameters…

Read More →

Back to Top