answersLogoWhite

0

What is the package and interfaces?

Updated: 8/18/2019
User Avatar

Wiki User

13y ago

Best Answer

Package:- package is collection of related classes and interfaces which can be import in our program. There are different built in packages available in java.Package provide us a facility to create user define packages.

Interfaces:- Interface is just like abstract class but the difference is that we can implements any no of interfaces in a single class .It is an alternative solution for multiple inheritance which is not available in java.

Once we have implement the interface we can define methods of that interface in our class.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the package and interfaces?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you design package in java?

it's a collection of classes is called a package .its a collection classes and interfaces which provides high level of security


What are the packages used in java?

package is a logical container that contains logically related classes interfaces and sub packages. Concept of package is use to provide a unik name space to class as well as to enforce scope.


Difference between awt and java script?

AWT is a Java package for creating graphical user interfaces. JavaScript is a completely unrelated programming language.


How can i see all the classes and interfaces present in a predefined package in java in command prompt?

use the jar command like this: jar tvf mypackage.jar


What is a vhdl package?

A package is a collection of types, constants, subprograms etc.These are usually intended to implement some particular service or to isolate a group of related items.In particular, the details of constant values and subprogram bodies can be hidden from users of a package, with only their interfaces made visible.A package may be split into two parts:a package declaration, which defines its interface, anda package body, which defines the deferred details.The body part may be omitted if there are no deferred details.The syntax of a package declaration is as follows:package_declaration ::=package identifier ispackage_declarative_partend [ package_simple_name ] ;


When was Innovative Interfaces created?

Innovative Interfaces was created in 1978.


This command displays statistics for the network interfaces on the router.?

Show Interfaces


When was Silicon Interfaces created?

Silicon Interfaces was created in 1990-02.


What is the minimum number of interfaces that a java class can have?

Zero. By default they do not implement any interfaces.


What is awt in java?

java.awt is a standard package of Java. It is a GUI(Graphical User Interface) package, which has classes in it such as Frame, Panel, and Button. Most of the package was later replaced with the javax.swing package, which has most of the same classes, only with a J prepended to them (JFrame, JPanel, JButton). However the java.awt package still includes some event handlers that are considered standard in java (java.awt.event).


What part of the operating system interfaces with the hardware?

the kernel is the part of the OS that interfaces with the hardware


What servlet API used for database connection?

The Servlet 2.3 API consists of two packages: javax.servlet and javax.servlet.http. The base functionality is defined in the javax.servlet package whose classes and interfaces outline a generic, protocol-independent implementation. This means you can use it for non-Web applications, too. The javax.servlet.http interface defines classes and interfaces that are specific to the Hypertext Transfer Protocol (HTTP).