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 the result of code execution? var obj = { "first":"first", "2":"2", "34":"34", "1":"1", "second":"second" }; for (var i in obj) { alert(i); };
What will be the result of code execution? (function(){ return typeof arguments; })();
What will be the result of code execution? console.log(typeof x, typeof String, typeof String.prototype, typeof String.prototype['concat']);
Consider following HTML snippet: <p> <span>Something_1</span> <span>Something_2</span> </p> What will be the result of the execution following code? $('span').wrapAll('<div></div>');
Which sign does jQuery use as a shortcut for jQuery?
Consider following HTML snippet: <p>first paragraph<p> <p>second paragraph<p> <p>third paragraph<p> What is the correct jQuery code to set the background color of all p elements to red?
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment