Wednesday , December 12 2018
Home / Java (page 2)

Java

Java Programming Tutorial is a widely used technology.This reference will take you through simple and practical approach while learning Java Programming language.

Difference between throw and throws in Java

There are many differences between throw and throws keywords. A list of differences between throw and throws are given below: 1) You can declare multiple exception thrown by method in throws keyword by separating them in common e.g. throws IOException, ArrayIndexBoundException etc, while you can only throw one instance of ...

Read More »

ArrayList in Java

java

The ArrayList class extends AbstractList and implements the List interface. ArrayList supports dynamic arrays that can grow as needed. Standard Java arrays are of a fixed length. After arrays are created, they cannot grow or shrink, which means that you must know in advance how many elements an array will ...

Read More »

Collections in Java

java

Collections in java is a framework that provides an architecture to store and manipulate the group of objects.This framework has several useful classes which have tons of useful functions which makes a programmer task super easy. All the operations that you perform on a data such as searching, sorting, insertion, ...

Read More »

Exception Handling In Java

java

An exception (or exceptional event) is a problem that arises during the execution of a program. When an Exception occurs the normal flow of the program is disrupted and the program/Application terminates abnormally, which is not recommended, therefore these exceptions are to be handled. Exception can occur at runtime (known ...

Read More »

Interface in Java

java

An interface is a reference type in Java, it is similar to class, it is a collection of abstract methods. An interface in java is a blueprint of a class. It has static constants and abstract methods only. The interface in java is a mechanism to achieve fully abstraction. There ...

Read More »

Method Overriding In Java

java

If subclass (child class) has the same method as declared in the parent class, it is known as method overriding in java. In other words, If subclass provides the specific implementation of the method that has been provided by one of its parent class, it is known as method overriding. ...

Read More »

Method Overloading In Java

java

In Java, it is possible to define two or more methods of same name in a class, provided that there argument list or parameters are different. This concept is known as Method Overloading. If a class have multiple methods by same name but different parameters, it is known as Method ...

Read More »

Polymorphism in java

java

Polymorphism is the ability of an object to take on many forms. The most common use of polymorphism in OOP occurs when a parent class reference is used to refer to a child class object. Any Java object that can pass more than one IS-A test is considered to be ...

Read More »

Inheritance in Java

java

Inheritance can be defined as the process where one class acquires the properties (methods and fields) of another. In other words, the derived class inherits the states and behaviors from the base class. The derived class is also called subclass and the base class is also known as super-class. The ...

Read More »

Java OOPs Concepts

java

In this page, we will learn about basics of OOPs. Object Oriented Programming is a paradigm that provides many concepts such as inheritance, data binding, polymorphism etc. An object in OOP has some state and behavior. In Java, the state is the set of values of an object’s variables at any ...

Read More »