108k views
1 vote
What is "public static grossPay()" an example of?

A) Method()


B) Literal()


C) Private()


D) Order()

1 Answer

1 vote

Answer:

A) Method()

Step-by-step explanation:

This is an example of a Java method header. It has the visibility modifier called public which makes it visible to other classes. It is a static method which means it can be only be called through the Class's name because an object instance of it cannot be created. It is named grossPay and has no parameters and does not return any type.

User RohitS
by
5.3k points