When I go to JavaDocs I find some classes in java package while some are in javax. Then I came across javax vs java package.
What i get from this link
almost from all answers is that javax package is just an extension of java library. I mean first Java must had come with core Java libraries I.E. java package but when some more package got developed they released with javax. Right?
Some question which immediately comes to my mind as developer. What are implications these of differently named packages for a Java developer. Here are the questions and analysis:-
- Even if I agree
javaxis just extension of core java. But then again I see totally different packages likeorg.omg.CORBAetc. Why this is namedjavax.omg.CORBA? - Do these packages like
javax,org, come with standard JDK and JRE download? Do these need to be downloaded separately from JSE 1.6? - Does the bootstrap classloader try to find the classes in these packages by default as it does in case of core Java classes (like
java.lang).
I think it’s fairly arbitrary. As Jon Skeet says in his answer to the question you link to, much of it historical. A good example of this is javax.sql – it contains classes to do with JDBC that were originally part of J2EE, but which were brought into J2SE in 1.4. So now there is a pointless split of classes between java.sql and javax.sql. There’s no particular meaning attached to the java/javax split inside the JDK.