Packages
- Which of the following is an incorrect statement about packages?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
A package can be renamed only after renaming the directory in which the classes are stored.
- Which of these access specifiers can be used for a class so that its members can be accessed by a different class in the different package?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
public
- Which of the following is the correct way of importing an entire package ‘pkg’?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Operator * is used to import the entire package.
- Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
All of above
- Which of the following package stores all the standard java classes?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
java