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

Advertisements

Methods

It is a block of code to perform a particular task like add(), subtract(), print() etc. (do refer Code Structure tutorial to know method structure). Earlier, you performed a basic program where you called the         System.out.print(" ") method to display a sentence between " " , where system executes several statements to … Continue reading Methods