Category: CORE JAVA

How to open a program like notepad, pdf file using Java? 0

How to open a program like notepad, pdf file using Java?

Java program to open any program or file. Example(s) – 1. Open notepad program using java. 2. Open a pdf file using java. This example will open a notepad for...

multiple inheritance using interface 1

Interface in Java

This post explains Interface in java. What is Interface? Interface is a blue print of class. Unlike class it contains only public & abstract methods and public, static & final...

loose coupling 2

Loose coupling example using Interface

Loose coupling example using Interface Loose coupling has advantage over tight coupling. Lets understand it with example In below example we have two classes A and B Class B implements...

Multiple Inheritance In Java 0

Multiple Inheritance In Java

Multiple Inheritance in Java has always been a topic of debate among people. Based on the Oracle’s Java tutorial (http://docs.oracle.com/javase/tutorial/java/concepts/inheritance.html) inheritance is a concept reserved to classes only, not Interfaces,...

Method Overloading v/s Method Overriding – Java 0

Method Overloading v/s Method Overriding – Java

The capability of more than one objects to respond to the same message in a different way can be broadly categorized into two types: 1. Method Overloading 2. Method Overriding...