Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

what is the difference between a threads start() and run() methods? : Java thread

0 Answers  


Why use string handling in Java?

0 Answers   HCL,


How you can create a radio buttion using Checkbox class?

1 Answers  


What are the advantages of arraylist over arrays?

0 Answers  


What is the difference between a break statement and a continue statement?

0 Answers  


Write a program to check for a prime number in java?

0 Answers   Cyient,


Can we declare array without size in java?

0 Answers  


What is the program development process?

0 Answers  


Which sorting algorithm is in place?

0 Answers  


What is HashTable?

4 Answers  


What is the main functionality of Prepared Statement?

4 Answers  


What is re-factoring in software?

0 Answers  


Categories