Instance variables are created when an object is created with use of keyword "new" - Core Java

Q.  Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?
- Published on 20 Jul 15

a. Local variables
b. Instance variables
c. Class Variables
d. Static variables

ANSWER: Instance variables
 

    Discussion

  • khamar pasha F    -Posted on 12 Nov 16
    Awesome to know at what stage r we now

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)