Java : Programming Concept Questions & Answers
Question : Which variables are created when an object is created with the use of the keyword 'new' and destroyed when the object is destroyed?
A.
Local variables
B.
Instance variables
C.
Class Variables
D.
Static
variables
Correct Answer is : Option B.
- Java language was initially called as ________
- What is garbage collection in the context of Java?
- Which one is a template for creating different objects ?
- Which symbol is used to contain the values of automatically initialized arrays?
- Which one is true about a constructor ?