How Are Automatic Variables Different From The Instance #1290
How are automatic variables different from the instance variables?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 Memory Allocation & Scope of Variable - OOPs MCQ: Automatic Variable - Quiz No.2.
How are automatic variables different from the instance variables?
Automatic variables are initialized automatically but instances are not
Automatic variables are given zero values initially and not instances
Instance variables have to be initialized explicitly and automatic implicitly
Instance variables are initialized implicitly while automatic are not