answersLogoWhite

0


Best Answer

A Display class in contained in this package as well... org.eclipse.swt.widgets

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the package class name that Display inherits from?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a default package in Java?

A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.


How do you execute a package in java?

You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.


How do you write a Java class that implements the collection interface found in the java.util package?

Type in "implements java.util.Collection" after the class name.


How do you add a class or an interface to a package in java?

Well, the process differs whether you are using either an IDE or the command line binaries. If you are using an IDE, then it is most likely that your IDE comes with extensive functionality for both managing and creating packages. Look under the "Packages" menu, or, when you are using Eclipse, just right click on the package name in the Package Explorer window and a flood of possibilities will come right up. If you are using the command line binaries, then there are 2 steps to putting your classes in a package. First, you have to put your class or interface in the appropriate folder structure. For example, if you are using the package com.foo.bar.beebop, then you have to put your class in a folder named beebop, which is in a folder named bar, which is in a folder named foo, which is in a folder named com, which is in your class directory. Then, you have to add a package statement, which is only allowed to be at the top of your class file. For example, if you're using the package com.foo.bar.beebop, then put the following statement at the top of your class: package com.foo.bar.beebop; Then skip a line, then come your import statements (if you have any), then stick in another line (if you have inport statements), then your class. Enjoy!


If you don't supply any access specifier with class name than which specifier it should have?

It will have the default access which means - this class will be accessible only within the current package.

Related questions

How do you prevent a class from being accessed from one package to another package?

put class name as private


How do you import a self created class in java?

It's the same as importing any other class: import [package name].[class name];


What is a default package in Java?

A default package is a package with no name. You can create a Java class without putting package name on top of the code. This class is included in the "default package". Be careful not to be confused with java.lang, which is a package that contains Java's fundamental classes and get's imported by default.


What is public class in java?

Generally to declare the class we use the public,abstract,final,strictfp and default modifiers. When ever we declare the class as public ,it mean public class A{} it is possible to access this class inside the same package and outside of the current package. ex: package name: pack This package contain the public class like package pack; public class A{} In this senario it is possible to access the in the same package "pack" like package pack; class Demo { public static void main(String args[]) { A a=new A(); } } And also it is posible to access the A class outside of the "pack" package like in anothe package like "pack1" package pack1; import pack.A; class Demo1 { public static void main(String args[]) { A a=new A(); } }


How do you execute a package in java?

You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.You don't execute a package; you execute a class. A package is just a grouping of classes.


How do you write a Java class that implements the collection interface found in the java.util package?

Type in "implements java.util.Collection" after the class name.


Write a program to display the name of days when a user enters a number?

write a program to display your name age class schoolname e-mail 2hobby based on choice


What is the name of behavior an animals inherits?

Instincts


What is name of package to be imported to access the math class?

U can use following method to import every methods under math class. import java.lang.math.* OR U can use following method to import particular package from Math class.(Here PI value imported from math class) import java.lang.Math.PI


Does A sheet tab display the name of a cell within a worksheet?

No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.No. It can only display the name of the sheet.


How do you compile a java program when it is in another directory?

using javac command and mentioning fully classified class name. Fully classified here means class name along with the package hierarchy in which the class is stored in .java file


On Java EE IDE Eclipse what is the package name?

For beginning use of Eclipse when creating a class file leave the package name blank and it will automatically default to your current project. Packages are used in programs with many classes, interfaces, etc. to group similar aspects of the program together to make for better organization. ----I don't know what you mean by creating a class file but i am trying to create a new project and where it sais package name i have no clue what to put and when i leave blank it sais "Package name must be specified" please help