Java OOPS – Part 2 – types of Inheritance with examples

Inheritance Inheritance is a mechanism wherein a new class (child class) is derived from an existing class (parent class), child classes may inherit or acquire the properties and methods of parent classes. Types of inheritance Single / multi level inheritance Hierarchical inheritance Benefits of inheritance Reusability Extensibility Saves time and effort Provides clear model structure For details, watch…

All about Java operators

With the help of Java operators, we can perform mathematical or logical operations on different data types. Types Explanation – Code sample – Arithmetic operator – public class ArithOp { public static void main(String[] args) { int a = 13; int b = 5; int result; result = a % b; System.out.println(result); } } Output…

Java for QA – Java Introduction

Java Introduction – First released by Sun Microsystems in 1995 Now owned by Oracle Corp. (From 2010 onwards) Java is free to use Platform independent Object oriented Large community support Easy setup Download link – http://www.oracle.com/technetwork/java/javase/downloads/index.html Environmental setup – In Windows PATH = Java bin folder path CLASS = Java lib folder In MAC No…