answersLogoWhite

0

What is the package and interfaces?

User Avatar

Anonymous

14y ago
Updated: 8/18/2019

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

14y ago

What else can I help you with?

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.


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


Difference between awt and java script?

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


What does import java.awt.event mean?

The statement import java.awt.event is a Java import statement that allows a program to use classes and interfaces from the java.awt.event package, which contains classes for handling event-driven programming, such as user interactions with GUI components. This package includes event listener interfaces and event classes for various types of events, such as mouse clicks, key presses, and window actions. By importing this package, developers can easily implement event handling in their Java applications.


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