which of these packages contains all the classes and methods required for event handling in java?
Mohammed
Guys, does anyone know the answer?
get which of these packages contains all the classes and methods required for event handling in java? from screen.
Which of these packages contains all the classes and methods required for even handling in Java?
Which of these packages contains all the classes and methods required for even handling in Java? (a) java. ... (c) java.event (d) java.awt.event
Which of these packages contains all the classes and methods required for even handling in Java?
← Prev Question Next Question →
1 Answer
← Prev Question Next Question →
Find MCQs & Mock Test
JEE Main 2024 Test Series
NEET Test Series
Class 12 Chapterwise MCQ Test
Class 11 Chapterwise Practice Test
Class 10 Chapterwise MCQ Test
Class 9 Chapterwise MCQ Test
Class 8 Chapterwise MCQ Test
Class 7 Chapterwise MCQ Test
Related questions
Which of these packages contains all the classes and methods
Which of these packages contains all the classes and methods required for even handling in Java?
Home » JAVA Programming » Java Basic » Question
Java Basic
Easy Questions
JAVA Programming
Java Basic Basic Syntax Object & Classes Basic Datatypes Variable Types Modifier Types Basic Operators Loop Control Decision Making Numbers Characters Strings Arrays Date & Time Regular Expressions Methods Files and I/O Exceptions Inheritance Polymorphism Abstraction Encapsulation Interfaces Packages Data Structures Collections Generics Serialization Networking Multithreading Applet
Which of these packages contains all the classes and methods required for even handling in Java?
java.event java.awt.event java.awt java.applet None of these
Correct Option: B
Most of the event to which an applet response is generated by a user. Hence they are in Abstract Window Kit package, java.awt.event.
Event Handling Basics
This section of our 1000+ Java MCQs focuses on basics of event handling in Java Programming Language. 1. Which of these packages contains all the classes and methods required for even handling in Java? a) java.applet b) java.awt c) java.event d) java.awt.event 2. What is an event in delegation event model used by Java programming ... Read more
Java Questions & Answers – Event Handling Basics
« Prev Next »
This section of our 1000+ Java MCQs focuses on basics of event handling in Java Programming Language.
1. Which of these packages contains all the classes and methods required for even handling in Java?
a) java.applet b) java.awt c) java.event d) java.awt.event View Answer
2. What is an event in delegation event model used by Java programming language?
a) An event is an object that describes a state change in a source
b) An event is an object that describes a state change in processing
c) An event is an object that describes any change by the user and system
d) An event is a class used for defining object, to create events
View Answer
3. Which of these methods are used to register a keyboard event listener?
a) KeyListener() b) addKistener() c) addKeyListener()
d) eventKeyboardListener()
View Answer
Note: Join free Sanfoundry classes at Telegram or Youtube
advertisement
4. Which of these methods are used to register a mouse motion listener?
a) addMouse()
b) addMouseListener()
c) addMouseMotionListner()
d) eventMouseMotionListener()
View Answer
5. What is a listener in context to event handling?
a) A listener is a variable that is notified when an event occurs
b) A listener is a object that is notified when an event occurs
c) A listener is a method that is notified when an event occurs
d) None of the mentioned
View Answer
Take Java Programming Tests Now!
6. Event class is defined in which of these libraries?
a) java.io b) java.lang c) java.net d) java.util View Answer
7. Which of these methods can be used to determine the type of event?
a) getID() b) getSource() c) getEvent() d) getEventObject() View Answer advertisement
8. Which of these class is super class of all the events?
a) EventObject b) EventClass c) ActionEvent d) ItemEvent View Answer
9. Which of these events will be notified if scroll bar is manipulated?
a) ActionEvent b) ComponentEvent c) AdjustmentEvent d) WindowEvent View Answer advertisement
10. Which of these events will be generated if we close an applet’s window?
a) ActionEvent b) ComponentEvent c) AdjustmentEvent d) WindowEvent View Answer
Sanfoundry Global Education & Learning Series Java Programming Language.To practice all areas of Java language, here is complete set of 1000+ Multiple Choice Questions and Answers.
« Prev - Java Questions & Answers – Regular Expression
» Next - Java Questions & Answers – ActionEvent & AdjustmentEvent Class
Next Steps:Get Free Certificate of Merit in Java Programming
Participate in Java Programming Certification Contest
Become a Top Ranker in Java Programming
Take Java Programming Tests
Chapterwise Practice Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Chapterwise Mock Tests: Chapter 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Related Posts:Apply for Information Technology Internship
Practice Information Technology MCQs
Practice Programming MCQs
Apply for Java Internship
Buy Java Books advertisement
Recommended Articles:
Event Handling in Java with Examples
Java Questions & Answers – Event Listeners Interfaces
Java Program to Create a Menu and Handle the File Open Event
Java Questions & Answers – String Handling Basics
Java Questions & Answers – Input & Output Basics
Java Questions & Answers – Exceptional Handling Basics
Java Questions & Answers – Exception Handling
JavaScript Questions & Answers – Handling Events
Java Questions & Answers – Java.lang – Object & Math Class
Java Questions & Answers – Java.util – Vectors & Stack
advertisement
Additional Resources:Event Handling in Java with Examples
Java Programs on Classes and Objects
Java Programming Examples
C# Programs on File Handling
Java Applet Programs
Popular Pages:Java Programs on Collections
Java Programming MCQ Questions
Java Matrix Programs
Searching Algorithms in Java
C Programs on File Handling
Guys, does anyone know the answer?