Hi All, This is the 1st time I am takin a ship of Java cup. Sooo...I have some doubts. Like.... 1.Wht. is the concept of Object? One way...I wanna know What is Object? 2.Relation bt. Object and Object Ref.
Ratul Banerjee. *************T H A N K S IN A D V A N C E **************** Round 1
rat ban consider a class as a template used to cast out objects. u use a class to combine a definition of data and methods (functions that can be carried out on that data). u can instantiate a class to form objects of that class. each of the objects that u create using say, Object o1 = new Object(); has its own copy of data and methods of the class type it is an instance of. o1 here, is a reference to the object created by new Object(). a reference is similar to a pointer(maintained internally by JVM) to the object which u create.
hi to add to what Sweekriti has said Object is the blueprint and in Java everthing flows from an object. When create a mould of the object and assign a name, the name is the object reference. regards venkat