Skip to main content
Browse topics

OOPS

OOPS Programs

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

oops programsEncapsulation Example in JavaEncapsulation explained in Java, with a complete example program, its sample output, and a clear code walkthrough.oops programsInterface Example in JavaInterface explained in Java, with a complete example program, its sample output, and a clear code walkthrough.oops programsMethod Overloading Example in JavaA Class has multiple methods of the same name with different parameters is called Method overloading. A Java example with source code and sample output.oops programsMethod Overriding Example in JavaMethod Overriding explained in Java, with a complete example program, its sample output, and a clear code walkthrough.oops programsFunction or Method Overloading with Different Data Type in JavaFunction or Method Overloading with Different Data Type explained in Java, with a complete example program, its sample output, and a clear code walkthrough.oops programsRun Time Polymorphism Example in JavaRun Time Polymorphism explained in Java, with a complete example program, its sample output, and a clear code walkthrough.oops programsCompile Time Polymorphism Example in JavaPolymorphism is the provision of a single interface to entities of different types. A Java example with source code and sample output.oops programsAbstract Class Example in JavaAn abstract type is a type of a nominative type system which cannot be instantiated directly. A Java example with source code and sample output.lambdaLambda Expression Example in JavaLearn Java lambda expressions with functional interfaces, syntax rules and a runnable example using Runnable, Comparator and a custom functional interface.genericsJava Generics Example in JavaLearn 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