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


Please Help Members By Posting Answers For Below Questions

How do you classify Dialog Box?

638


What is parseint?

524


Is java a compiler?

563


How many types of variables are there?

662


What types of index data structures can you have in java?

606






What is the difference between form & report?

584


What is constructor and its types?

533


What is the collections api?

565


What is the use of string and stringbuffer?

540


What is a protected void?

500


What is floor in java?

550


What is a boolean expression in java?

525


Explain about data types?

569


What are peerless components?

615


Explain about main() method in java ?

576