0
What are the Java packages?
what is Java packages? what is .awt
1 Réponse
+ 3
Java packages are the collection of related classes and methods.
Now , consider the awt package,
when you will be doing programs related to graphics you will use methods such as setLayout, textField, setSize and many more. the actual definitions of these methods are present in the 'awt' package. So u need to import these packages. If you dont import awt package then you will get errors like method does not have definition and similar.