Generic « Language « Java Articles

Java Articles
1. Class Definition
2. Data
3. Development
4. GUI
5. J2EE
6. J2ME
7. JavaBeans
8. Language
9. Microsoft Collabration
10. Network
11. Swing
12. System Resource
13. XML
Microsoft Office Word 2007 Tutorial
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Products
Java by API
C# / C Sharp
C# / CSharp Tutorial
ASP.Net
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
PHP
Python
SQL Server / T-SQL
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Java Articles » Language » Generic 
1. Enforce strict type safety with generics
Author:Conan Dalton
URL:http://www.javaworld.com/javaworld/jw-09-2004/jw-0920-generics.html
Summary: Java generics are the exciting new feature of Java 5 (renamed from J2SE 1.5) due for release shortly. Much controversy surrounds generics. In fact, Sam Pullara suggests that generics are just a really complicated way of implementing autocasting. In this article, Conan Dalton attempts to present one of the bright sides of generics: the ability to enforce stricter type safety-in particular, a kind of type safety that can not be achieved with autocasting. Dalton uses a simple but reusable event-dispatching mechanism for an example and compares a generics-aware implementation with a non-generics-aware implementation. He explains some of the more obtuse elements of the new Java syntax and, in conclusion, suggests that generics may have a different impact depending on whether you are an API client or an API developer. (1,300 words September 20, 2004)


2. Understanding generics
Author:Tarak Modi
URL:http://The Java 2 Platform, Standard Edition (J2SE) 1.5 contains new and exciting features, many of which have been long awaited for by Java programmers. J2SE 1.5-code named "Tiger"-is the most significant revision to the Java language since its original inception. Tarak Modi's primary goal with his three-part series on Tiger is to familiarize readers with J2SE 1.5's most important additions and show how to capitalize on these additions in the real world. In Part 2, he introduces generics. (1,000 words; June 7, 2004)
Summary: Tarak Modi


ww___w___.__ja__va_2_s_.__c_o_m___ | Contact Us
Copyright 2003 - 08 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.