why we import both packages java.awt.*; and java.awt.event.*;
as java.awt.*; can import all classes na. then what is the
need of importing java.awt.event.*; ?
Answer Posted / hardyesh gupta
java.awt.*; imports the classes available in awt package,but
it does not import packages available in awt.To import the
event package available in awt package, we use the
java.awt.event.*;
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a break statement and a continue statement?
What method is used to specify a container's layout in java programming?
What do you understand by overloading and overriding in java?
How many types of design patterns are there?
Can a class be private in java?
When is the finalize() called? What is the purpose of finalization?
Can we create our own daemon thread?
What is a singleton class? Give a practical example of its usage.
What is difference between call by value and call by reference?
Can keyword be used as identifier?
State some situations where exceptions may arise in java?
how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT
How will you reverse a singly-link list?
What is the significance of listiterator?
Give me an example of array and linked list? Where they can be used?