Friday, September 25, 2009

Java Version

1. Java 5's BlockingQueue


"The very first interface listed in java.util.concurrent is BlockingQueue, a java.util.Queue subclass. When clients attempt to retrieve elements but none are available, a BlockingQueue encapsulates code that waits until an element becomes available. The Queue class, also new to Java 5, is a new collection class that supports the classic concept of a FIFO (first-in, first out) data structure. Other Java 5 queue implementations include support for removal based on priority, and a collection that acts like a stack."

2. Java 5's DelayQueue

"The queue classes in the Java 5 package java.util.concurrency package provide solutions for common queuing needs. The DelayQueue class provides a blocking queue from which objects cannot be removed until they have been in the queue for a minimum period of time."

3. Copying Arrays in Java 6

"My take is that small simplifications add up dramatically. I'm pleased with how much simpler I can get my Java 5 applications to look than code written with earlier versions of Java. With Java 6, Sun has introduced only a tiny amount of core Java simplification. I'll take it!"

4. Using Foreach Loops in J2SE 1.5

"Instead, you can designate the Catalog class as being "iterable." Making a class iterable tells clients that they can iterate through its contents using a foreach loop. Sun has added to Java a new interface, java.lang.Iterable, that allows you to mark your classes as iterable:"

5. Looking at Varargs in J2SE 1.5

"Java 1.5 is slated to be released by Sun in late summer 2004. It contains many significant new language features and will dramatically alter the look and feel of Java code. The new varargs language feature was introduced to allow more flexibility and simplicity in coding."

6. Java theory and practice: Using Java 5 language features in earlier JDKs

"One category of developers unable to take advantage of Java 5 features are those who develop components, libraries, or application frameworks. Because their customers may still be using JDK 1.4 or earlier and classes compiled with Java 5 cannot be loaded by JDK 1.4 or previous JVMs, using Java 5 language features would limit their customer base to companies that have already transitioned to Java 5."

Java Certifications

1. Programming Certifications: Java 2


"If you have been part of the computer programming world for any length of time you are sure to have heard of, and probably used, Java 2 technologies. Java 2 is Sun Microsystems's development platform for creating end�to�end network applications and embedded applications. Two Java platforms exist, Java 2, Standard Edition (J2SE) and Java 2, Enterprise Edition (J2EE). The J2SE platform contains essential items like compilers, tools, API's, and runtimes for creating and deploying applications as well as applets created with the Java language. The J2EE platform includes support for Web Services and the infrastructure for building secure and robust business applications. As with Microsoft developer certifications, see Microsoft Developer Certifications: What's Your Path? , Sun offers certifications for the tools and infrastructures found in the J2SE and J2EE platforms. These certifications allow Java 2 developers to exhibit their skills and expertise with Java 2 technologies. There are four certifications one can attain, and these include:"





2. Java certification programs can help you get ahead

"Sun Certified Developer for the Java Platform details For individuals who write and design Java programs. A step up from Sun's Java programmer certification."





3. Java 2 Certifications: An Introduction

"Sun Microsystems' Java 2 Platform is a familiar set of tools known to most in the development world. The Java 2 Platform, Standard Edition (known as J2SE) offers the tools, compilers, APIs, and runtimes for creating and deploying Java applets and applications. The Java 2 Platform, Enterprise Edition (known as J2EE) offers the tools and infrastructure to manage and support Web services that come together to make secure, interoperable business applications. Finally, the Java 2 Platform, Micro Edition (known as J2ME) is for consumer and embedded devices. These devices can include cell phones, PDAs, and vehicle telematic devices."





4. Which Java Certification Path is Right for You?

"While jCert defines the skill levels and objectives for each skill level, individual companies write the exams. Moreover, each member company has a Java certification path. How well do these exams and paths comply with the jCert standard?"

top 10 java features or what makes java great

List of top 10 features in Java SE 6.




Web Services

You get first-class support for writing XML web service client applications (death of Apache Axis?). No more messing with the plumbing (unless you really want to). You can also expose your APIs as .NET interoperable web services with a simple annotation.





For developers who want to handle XML directly Mustang adds new parsing and XML to Java object-mapping APIs, previously only available in Java EE platform implementations or the Java Web Services Pack.



Scripting

You can now mix in JavaScript technology with your Java technology source code, useful for prototyping. Also useful when you have teams with a variety of skill sets.



Database

The final Mustang development kit will co-bundle the all-Java JDBC database, Java DB based on Apache Derby. This should enable developers (new to Java) to get a jumpstart on java development.

Developers will get the updated JDBC 4.0, which focuses on ease of use. It contains many feature additions like support for XML as an SQL datatype and better integration of Binary Large OBjects (BLOBs) and Character Large OBjects (CLOBs) into the APIs. Additional features that improve ease of use include removal of some JDBC boilerplate and some of the new annotations that make SQL strings embed better into your JDBC application – like decorating your getAllUsers() method with an @Query(sql="select * from user") annotation, and that being all you need. More annotation love for you.



More Desktop APIs

GUI developers get a large number of new tricks to play like the ever popular yet newly incorporated SwingWorker utility to help you with threading in GUI apps, JTable sorting and filtering, and a new facility for quick splash screens to quiet impatient users.



Monitoring and Management

The really big deal here is that you don't need do anything special to the startup to be able to attach on demand with any of the monitoring and management tools in the Java SE platform. Mustang adds yet more diagnostic information, and we co-bundled the infamous memory-heap analysis tool Jhat for forensic explorations of those core dumps.



Compiler Access

Really aimed at people who create tools for Java development and for frameworks like JavaServer Pages (JSP) or Personal Home Page construction kit (PHP) engines that need to generate a bunch of classes on demand, the compiler API opens up programmatic access to javac for in-process compilation of dynamically generated Java code. Finally you don't have to save your code as a Java files and invoke javac to generate a classfile, a clumsy procedure at best.



Pluggable Annotations

Java tool and framework vendors (and you) can define annotations and have core API support for plugging in and executing the processors that do the heavy lifting. It seamlessly integrates your custom annotations .



Desktop Deployment

Better platform look-and-feel in Swing technology, LCD text rendering (more clarity on LCD monitors like Vista), and snappier GUI performance overall. Java applications can integrate better with the native platform with things like new access to the platform's System Tray and Start menu. At long last, Mustang unifies the Java Plug-in technology and Java WebStart engines, which just makes sense. Installation of the Java WebStart application got a much needed makeover.



Security

Mustang simplified the job of security administrators by providing various new ways to access platform-native security services, such as native Public Key Infrastructure (PKI) and cryptographic services on Microsoft Windows for secure authentication and communication, Java Generic Security Services (Java GSS) and Kerberos services for authentication, and access to LDAP servers for authenticating users.



Quality, Compatibility, Stability

Sun has around 80,000 test cases and several million lines of code testing conformance. People have been downloading (and testing) snapshots of Mustang for the last 15 months and filing bugs. So even before beta several quality and regression issues were fixed. Performance is claimed to be better than J2SE 5.

Java Data Types

Arithmetic Demo Click image to read the source code.

Date Format with Locale Click image to read the source code.


Number Format Test Click image to read the source code.


Relational Demo Click image to read the source code.

Date format: "dd.MM.yy", "yyyy.MM.dd G 'at' hh:mm:ss z","EEE, MMM d, ''yy", "h:mm a", "H:mm", "H:mm:ss:SSS", "K:mm a,z","yyyy.MMMMM.dd GGG hh:mm aaa" Click image to read the source code.



Simple Date Format Demo Click image to read the source code.


Look for particular sequences in sentences Click image to read the source code.


Demonstrates the mathematical operators. Click image to read the source code.


Java

For the past 13 years, Java has changed our world . . . and our expectations..

Today, with technology such a part of our daily lives, we take it for granted that we can be connected and access applications and content anywhere, anytime. Because of Java, we expect digital devices to be smarter, more functional, and way more entertaining.

In the early 90s, extending the power of network computing to the activities of everyday life was a radical vision. In 1991, a small group of Sun engineers called the "Green Team" believed that the next wave in computing was the union of digital consumer devices and computers. Led by James Gosling, the team worked around the clock and created the programming language that would revolutionize our world – Java.

The Green Team demonstrated their new language with an interactive, handheld home-entertainment controller that was originally targeted at the digital cable television industry. Unfortunately, the concept was much too advanced for the them at the time. But it was just right for the Internet, which was just starting to take off. In 1995, the team announced that the Netscape Navigator Internet browser would incorporate Java technology.

Today, Java not only permeates the Internet, but also is the invisible force behind many of the applications and devises that power our day-to-day lives. From mobile phones to handheld devises, games and navigation systems to e-business solutions, Java is everywhere!