‘is a’ relationship is also known as inheritance. We can implement ‘is a’ relationship or inheritance in java
using extends keyword. The advantage or inheritance or is a relationship is re-usability of code instead of
duplicating the code.
Example : Motor cycle is a vehicle
Car is a vehicle Both car and motorcycle extends vehicle.
Any hardware or software environment in which a program runs, is known as a platform.…
Multi-threading is a Java feature that allows concurrent execution of two or more parts of…
Constants in java are created using static and final keywords. Constants contains only uppercase letters.…
Variable names should start with small letters. Variable names should be nouns. Short meaningful names…
Method names should start with small letters. Method names are usually verbs If method contains…
Interface should start with uppercase letters Interfaces names should be adjectives Example : Runnable, Serializable,…