A. The default modifier for a class is private.
B. Exception classes must end with the word exception.
C. A class can have multiple levels of inner classes.
D. The default modifier for an interface is private.
Write something about yourself
Answered Oct 17, 2018
Answer: A, B
A.The default modifier for a class is private.
The top-level of the type must set Public or Global for the modifier. So an only inner class can ignore to set, which default to private.
C is incorrect. Because aclassonly can have 1levels of inner class.
D is incorrect. Interface is atop level of type, that must set Public or Global for modifier. No inner interface so no default modifier for interface.
Answered Jun 28, 2020
As Interface methods have no access modifiers and they are always global.Also The default modifier for a class is private. So correct answer narrows down to A and B
Answered Sep 08, 2019
This is the default, and means that the method or variable is accessible only within the Apex class in which it is defined. If you do not specify an access modifier, the method or variable is private.
Interface methods have no access modifiers. They are always global.
Answered Jan 04, 2019
This question is incorrect - the only correct answer here is B
Answered Sep 28, 2018
Forgot your password?