adplus-dvertising
frame-decoration

Question

An _______________ statement can be used to access the classes and interface of a different package from the current package.

a.

instanceOf

b.

import

c.

extends

d.

implement

Answer: (b).import

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. An _______________ statement can be used to access the classes and interface of a different package from the current package.

Similar Questions

Discover Related MCQs

Q. Which of the following packages is used to includes classes to create user interface like Button and Checkbox?

Q. Which of the following packages is used to includes utility classes like Calendar, Collection, Date?

Q. Which of the following is the correct way of importing an entire package "pkg"?

Q. Which of the following is false statement about package in java?

Q. Packages that are inside another package are the _________

Q. An interface in Java is like a 100% ____.

Q. A Java Interface is not considered a class. State TRUE or FALSE.

Q. Choose the correct syntax below for defining an Interface in Java.

Q. Choose a correct statement about Java Interfaces?

Q. A Java Class inheritsConstants and Methods of an Interface using ____ keyword.

Q. All Interface variables are ___ by default in Java.

Q. All Interface methods in Java are ____ by default.

Q. A Class implementing an Interface can use ____access modifier before the implemented methods.

Q. A Java Class implementing an Interface can define a variable with the same name as that of the Interface constant. State TRUE or FALSE.

Q. A Java Interface can not declare constructors. State TRUE or FALSE.

Q. Java 8 (Java 1.8) introduced the ___ feature.

Q. Java Interface static methods have ___ compatibility with the existing project code.

Q. Java Interface DEFAULT methods have ___ compatibility with the existing project code.

Q. The DEFAULT methods of an Interface are suitable mostly for ___ type of projects.

Q. Is it possible to remove the keyword DEFAULT and make the method abstract again in an Interface, if the Interfacebelongs to a Closed-Source project?