Java OCA OCP Practice Question 3240

Question

You want to use the static member MYCONST belonging to class A in abc.org.project package.

Which one of the following statements shows the correct use of static import feature?

a)static import abc.org.project.A;
b)static import abc.org.project.A.MYCONST;
c)import static abc.org.project.A;
d)import static abc.org.project.A.MYCONST;


d)



PreviousNext

Related