Inheritance(1)- Introduction

Before you begin with inheritance read this story. An employee named Tom is working for XXX company as a Java developer. Tom is working on a project. His boss asked him to design a code for different shapes. He explained him- “There will be different shapes (square, triangle and circle). Each shape will have two … Continue reading Inheritance(1)- Introduction

Advertisements

Objects

We assume now you are very much familiar with data types, variables, class { } & methods ( ). Object is the most important concept in Java. So what is an object? An object can be anything physical entity like dog, mobile, bike, fan etc. They are objects because they have a state and a behavior. … Continue reading Objects

Data Type

In previous tutorial we read about variables. We also know that variables have size and type. Now, what’s that? Why bother about type and size? Java cares about type. It won’t allow you to do something bizarre and dangerous, like stuff a Chocolate reference into a Cold-drink Variable, or stuff an aircraft reference into a … Continue reading Data Type