<font color='#000000'>Well as i told i never had aquestion in an exam or by any
body else about this , so i can not give you examples:dd:
but if you can bring the question , i promise that i will try
my best to solve it
At the end, after seeing your example i came with this eplanation
Core Packages: are packages provided by sun MicrosSystem and that are necessary for Java language to function like the one you had above
Extension Packages: they are packages developed by another user or company for a special purpose like the robocode package developed by IBM and you youself can actually creat your own package and do import using the sataement package packagename; which goes in the first line of any class to be included in that particular package ..... Also Extension packages incluede packages developed by Sun Microsystems itself like the one you provided javax.swing.*;
because the classes in this package do the same work as the the java.awt.*;
classes actually do and so we can call
javax.swing as an <span style='color:red'>extention</span>of the java.awt package
and so on you can find other packages developed by Sun which realy do the same thing as other older packages do but with some improvements and i do not think there is a way in which you can tell if this package is a core one or an extension one from just looking at its name:D ....so you gotta study and see more examples
Finally i am really impressed by these question .. they are
really excellent question
Thanx alot</font>
مواقع النشر (المفضلة)