Question 42 Which one of the statement given in options is false?
Qualcomm technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Which one of the statement given in options is false?
Show answer & explanation
Statement B is false because static methods are NOT always private—they can be public, protected, or private. The access modifier is independent of whether a method is static. Additionally, static methods are defined at the class level, not the object level, making the reasoning in option B incorrect on both counts.
Step-by-step Derivation:
Evaluating each statement: (A) True—static blocks execute when a class loads and are commonly used to initialize static variables. (C) True—multiple static blocks execute sequentially in declaration order. (D) True—static methods can be overloaded by varying parameter types/count, just like instance methods. (B) False—static methods can have any access modifier (public static, private static, protected static), and they belong to the class, not individual objects. The statement conflates static with private access and mischaracterizes scope.