How do you test a method for an exception using junit?
When do you get classcastexception?
What is assembly used for?
What is the properties class?
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 do you understand by the term polymorphism?
Why is singleton class used?
What are passing parameters?
What is difference between an object and a class?
Can a final method be overloaded?
Can a class be private?
Is it possible to instantiate the abstract class?
What is byte [] in java?
Why collection doesn’t extend cloneable and serializable interfaces?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net