Answer Posted / manoj kumar sahu(secon pvt.ltd
Package is nothing but it can be call as container of all
related class.All *.class files are stored in a package for
that we can implement the require *.class files in our
program.In java one package can be implement by using the
keyword import.The syntex is
import java.<packagename>.*;
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What is the use of singleton class?
What is class level lock ?
What is an example of a constant variable?
What is difference between static variable and global variable?
What is the driver class?
What is the difference between compiler and jvm?
What is the base class of all exception classes?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
What is regex used for?
When does an object becomes eligible for garbage collection in java?
How do you find the absolute value?
What is the basic concepts of OOPS?
What is preflight request?
What does exp mean in math?
What are the steps that are followed when two computers connect through tcp?