AP Computer Science Aeasymcq1 pt
Which correctly calls a static method?
A.ClassName.methodName()
B.methodName.ClassName()
C.new ClassName.methodName()
D.instance.methodName() with no instance
Statics are called via the class.
AClassName.methodName()
Practice more AP Computer Science A questions with full explanations
Practice Unit 5: Writing Classes Questions →