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.*; ?
Answers were Sorted based on User's Feedback
Answer / dhana
As it imports all the classes in java.awt package. It
doesn't import any packages inside java.awt i.e. event package.
So we should declare one more import stat in order to import
all the classes inside event package.
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / 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 |
What is array command?
What is difference between an object and a class?
Does sprintf add a null terminator?
What is a control variable example?
Explain the protected field modifier?
what is a green thread? : Java thread
I need some details about an employee. i have only the employee id in my presentation layer(JSP).I entered that ID and click "Show Details" Button. Question is how the JSP pass that id to Controller layer and DAO and what mechanism we are using to retrive data from DB and how the data passed to JSP as a Output. Please explain in detail.
How is string stored in java?
How many ways can an argument be passed to a subroutine?
3 Answers Technological University of the Philippines,
Define nashorn in java8.
Which collection is thread safe in java?
Static Variable can referred in non-static method?