View RSS Feed

Java Object

Object-oriented programming in Java.

  1. Declaring a Variable to Refer to an Object

    by , 04-26-2012 at 06:02 PM
    Now declaration of variable has been learned. You write:

    type name;

    It shows that the compiler which will be used name to refer, to the data, whose type will be type. Proper memory amount is also reserved by the declaration, for the variable.

    Reference variable could also be declared at its own lines. Like, for example:

    Point originOne;

    When originOne is declared like this, value will stay un-determined till the actual creation ...
    Categories
    Tutorial