JDK 1.6 introduced enhancements to collections like Deque and BlockingDeque. It added support for XML, web services, and annotations. New features included support for scripting languages via JSR 223, improved JDBC 4.0 support, and enhancements to AWT and Swing for application GUIs. The Java compiler APIs were also made accessible to programs.