what is the actual difference between java and javax packages

historical only. The javax packages were originally intended to be distributed separately as optional extras (thus the x, "xtra").
They were later incorporated into the standard distribution, but as they were already in widespread use the name could not be changed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.