Java
Class <b>D ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
Class
Dog
is created in the package
animals
, and class
Peter
- in the package
humans
. Choose all appropriate variants of description for
import
construction,so that class
Peter
will be able to create and use objects of class
Dog
?
import ../animals/Dog;
import /animals/*;
import animals.Dog;
import Dog.animals;
import *.animals;
import animals.*;
Explanation
For this case
import package.class
construction is used, where
class
could be a concrete class name or symbol
*
.
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
J
ava
Quiz
Login to learn Java
or
Read more about
Java Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Keep exploring
Java quizzes
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
What will be printed out as a result of the following code execution / compilati...
int i = Integer.MAX_VALUE + 10; What is th...
What happens after the following code is compiled and run: ...
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment