Question: Which statement is used to access a class from a package named mypackage when the class is declared with the public access modifier? Question 1
Which statement is used to access a class from a package named mypackage when the class is declared with the public access modifier?
Question Answer
a
import mypackage;
b
mypackage.ClassName obj new mypackage.ClassName;
c
import mypackage.ClassName;
d
ClassName obj new ClassName;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
