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

Explanation

Core Concept

Statics are called via the class.

Correct Answer

AClassName.methodName()

More Unit 5: Writing Classes practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 5: Writing Classes Questions →