Skip to main content

OOPS Programs

Classes, objects, inheritance, polymorphism, encapsulation and abstraction.

1
oops programs

Encapsulation Example in Java

Encapsulation explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

2
oops programs

Interface Example in Java

Interface explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

3
oops programs

Method Overloading Example in Java

A Class has multiple methods of the same name with different parameters is called Method overloading. A Java example with source code and sample output.

4
oops programs

Method Overriding Example in Java

Method Overriding explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

5
oops programs

Function or Method Overloading with Different Data Type in Java

Function or Method Overloading with Different Data Type explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

6
oops programs

Run Time Polymorphism Example in Java

Run Time Polymorphism explained in Java, with a complete example program, its sample output, and a clear code walkthrough.

7
oops programs

Compile Time Polymorphism Example in Java

Polymorphism is the provision of a single interface to entities of different types. A Java example with source code and sample output.

8
oops programs

Abstract Class Example in Java

An abstract type is a type of a nominative type system which cannot be instantiated directly. A Java example with source code and sample output.

9
lambda

Lambda Expression Example in Java

Learn Java lambda expressions with functional interfaces, syntax rules and a runnable example using Runnable, Comparator and a custom functional interface.

10
generics

Java Generics Example in Java

Learn Java generics with type-safe ArrayList and a generic Box class. Covers type parameters, benefits over raw types and sample output.

Related Topics

Search tutorials