Answer Posted / pooja
a package is nothing but a folder in which there are a
collection of classes and interfaces.
of course it is a folder , a folder which is created
explicitly is not a package .
the keyword used for creation of package is "package"
syntax:package <package_name>;
compilation syntax:javac -d path file_name.java;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a boolean structure?
What is bean? Where it can be used?
how to create constants in java?
Can we use different return types for methods when overridden?
List some java keywords sun like c, c + + keywords?
What are the types of inner classes (non-static nested class) used in java?
What do you understand by abstract classes?
explain local datetime api in java8?
What is final keyword in java?
What sorting algorithm does javascript use?
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 are the ways in which a thread can enter the waiting state?
What is the best way to findout the time/memory consuming process?
Explain the JDB in depth & command line.
What is the difference between method overriding and overloading?