What is a parameter used for?
No Answer is Posted For this Question
Be the First to Post Answer
What are wrapper classes?
Difference in the use of print, println, and printf.
Static Variable can referred in non-static method?
how many ways to create Thread and which one is good? runnable interface ot Thread class?
In what circumstances, compiler will supply a default constructor for a class?
System.out.println("somestring"); It will create any object or not
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.
Can we write a class without main method in java?
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly?
Define an enumeration?
What is byte value?
Can an interface have a constructor?