Explain what is Marker interface?
No Answer is Posted For this Question
Be the First to Post Answer
What about abstract classes in java?
Can we make constructors static?
Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.
AWT event listeners extends what interface?
Can java list contain duplicates?
What are Transient and Volatile Modifiers?
3 Answers SAP Labs, TUP Manila,
What is hash code collision?
Describe the syntax of multiple inheritance? When do we use such an inheritance?
How to make a write-only class in java?
What are the notations in Java?
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 finally in Java?