What does a boolean method return?
No Answer is Posted For this Question
Be the First to Post Answer
what do you mean by classloader?
What are the rules for variable declaration?
What is the difference between actual and formal parameters?
What is the purpose of main function in java?
What are the benefits of java?
What is bifunction in java?
explain Anonynous inner class?
What is the use of StringTokenizer class?
What is the GregorianCalendar class?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
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 encapsulation in java? Explain