keyword Programs

Keyword Programs - Which Keyword Program is best

Subscribe to keyword Programs

Hi! Welcome to my theme.Now you may replace my photo with yours (180px wide is apt) and write down some texts about you.This will let your visitors to know who you really are.You can do this by editing the about.php file in the theme pack...

AD blocks

What's the use of the keyword new in object oriented programming in java?

I wanna know?

In all object-oriented languages, the 'new' keyword creates a new class instance.

  1. h714375 Said,

    I dont know Java but in C# it means it tells the system to open a new instance… so the program will allocate memory for it.
    References :

  2. axy011 Said,

    new creates a unique instance of an object or class with its own set of variables and methods
    References :

  3. oracle128au Said,

    In all object-oriented languages, the 'new' keyword creates a new class instance.
    References :

  4. Jose H Said,

    "new" is an operator. It is used to "instandiate" or create an object of a given class. For example suppose you have a Student class and in order to add a new student to the your school's roster you have to provide a student name, ID, age, and grade. You would use the new operator in the following manner.

    Student objectName = new Student( );
    References :

  5. rakesh Said,

    In java memory for every object is allocated in heap section. new keyword is used to allocate the memory for an object.
    References :
    Hussain sir

  6. mahi' s Said,

    Dear the use of new key word in java is to create a new object on the memory heap..it will allocate the memory for yr object..

    For nay kind of help in java u can visit..

    http://4-engineers-help.blogspot.com/2009/03/what-is-class-loader-in-java-its.html

    Thanks
    4 engineers help
    References :
    http://4-engineers-help.blogspot.com/2009/03/what-is-class-loader-in-java-its.html

Add A Comment