Practice question
3 marksWhat is the this keyword and when is it needed?
Encapsulation and Class as a User-Defined TypeMediumShort answer
Computer Science · Class 11 · ISC
Access specifiers, instance and class variables, the this keyword, and a class as a composite data type.
5questions
Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)
5 questions
Practice question
3 marksWhat is the this keyword and when is it needed?
Encapsulation and Class as a User-Defined TypeMediumShort answer
Practice question
3 marksName the access specifiers of Java and state the visibility each gives.
Encapsulation and Class as a User-Defined TypeMediumShort answer
Practice question
3 marksDistinguish between an instance variable and a class variable.
Encapsulation and Class as a User-Defined TypeMediumShort answer
Practice question
3 marksWhy are the data members of a class usually declared private?
Encapsulation and Class as a User-Defined TypeMediumShort answer
Practice question
3 marksWhat is the default value of an instance variable of type int, double, boolean and String in Java?
Encapsulation and Class as a User-Defined TypeMediumShort answer