0% found this document useful (0 votes)
28 views4 pages

Advanced Java Practical 11

This document provides 3 programming questions and code snippets. Question 1 asks to debug code that prints "Hello World" and outputs the text. Question 2 asks to write a program that counts mouse clicks in a frame window. Question 3 asks to write a program demonstrating the mouseDragged and mouseMoved methods of the MouseMotionListener interface.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views4 pages

Advanced Java Practical 11

This document provides 3 programming questions and code snippets. Question 1 asks to debug code that prints "Hello World" and outputs the text. Question 2 asks to write a program that counts mouse clicks in a frame window. Question 3 asks to write a program demonstrating the mouseDragged and mouseMoved methods of the MouseMotionListener interface.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Program Code

Q1. Debug the following code and write the output of following code.
Source Code:

Output:
Q2. Write a program to count the number of clicks performed by the user in a Frame window

Source Code:

Output:
Q3. Write a program to demonstrate the use of mouseDragged and mouseMoved method of
MouseMotionListener

Source Code-

Output:

You might also like