Skip to main content

Posts

Showing posts from January, 2018

JAVA CLASS at a glance..

Hi, in this blog let’s get started with java…. let’s skip its history and move to its concepts. Ultimate aim to develop java is to behave as a pure Object-Oriented language but unfortunately it is not. Because its supports primitive data types like int, float, etc., to overcome this JAVA has introduced wrapper class. I’ll tell u detail soon after. The main building blogs of java program is Objects and Class with the help of these we can simulate any real-time object with its qualities as a JAVA program. In this blog I share my knowledge about the class. Class, the class is a blue print or framework which contains variables and methods(functions) that define the quality of an object. The syntax of class is “class <name> {……….}”. for example class box {                        //……………………………………………class name int length = 10; int breadth = 10; String colour =” blue”; String shape = “square”; void print() {                       //………………………………………….method. System.out.pr