• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What are NEW FEATURE in Java Tiger ??

 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What are NEW FEATURE in Java Tiger ??

And Example to use each NEW FEATURE ....
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here they are! somkiat... There are plenty of examples as well...

Hope it helps you and all other ranchers out here who are interested in Tiger...

P.S., more specifically, here
[ August 24, 2004: Message edited by: Ko Ko Naing ]
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nice article
http://www.onjava.com/pub/a/onjava/2004/07/28/javackbk2.html
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems to me that most new features are basically simplify the coding structures.

In addition to Enumeration datatype, are there any non-syntax wise new features?

Nick
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check out the vargs
Creating Varargs in Java 1.5 Tiger
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems that are lots of stuffs that are new.

I started worry about SCJP Tiger Beta.

Nick
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pradeep Bhat:
Check out the vargs
Creating Varargs in Java 1.5 Tiger



Good book.....
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Nicholas Cheung:
Seems that are lots of stuffs that are new.



See. That's one of the reasons why Sun has changed its name to Java 5.0, instead of J2SE 1.5...
 
Ranch Hand
Posts: 1327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
is the new Java tiger worth using if we are currently developing software using J2SE 1.4 comfortably and efficiently?
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Is the new Java tiger worth using if we are currently developing software using J2SE 1.4 comfortably and efficiently?



I was wondering this too. The lack of major changes in Java (at least, J2SE) over recent years has been quite welcome for us. I don't find that Java is missing much at the moment, maybe i'm just living in the past
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tiger is a break through of J2SE. You may find lots of areas that have been greatly improved a lot.

For IT industry, it is better for us to be always up-to-date, so that when new things really come to real development/applications, we are already know them.

Nick
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Billy Tsai:
is the new Java tiger worth using if we are currently developing software using J2SE 1.4 comfortably and efficiently?



Well, if we could, our team would jump to using Tiger yesterday - mainly because of generics. Unfortunately, we are probably stuck with 1.4 for years (some of our projects still try to escape 1.3...)
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I guess one of the reasons for the new language features such as enumerations, varargs and the new for loop is that Java has C# as a competitor language.
 
blacksmith
Posts: 1332
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The generics are useful. Did they also get the threading improvements in?

A lot of the stuff just seems like language bloat - not surprising in a language like C#, but not necessarily suitable for Java.

The new for loops, for example, are quite cryptic ... they needed a keyword rather than a colon. (If the colon means "in", why not just use "in"?) I think they could have put in a context sensitive keyword without breaking existing code....

I wouldn't use 1.5 for anything that will be released within the next year or two, as it will take a while for virtual machines on various platforms to catch up.
 
Mogens Nidding
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sun introduced as few new keywords as possible for upwards compatibility, e.g. old code should be able to compile with the new JDK. Such as mine, which has Reader <i>in</i> = new BufferedReader(...) sprinkled all over.
 
Author
Posts: 253
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the list of the major new features that I cover in my book:

Generics
Metadata (Annotations)
Autoboxing/unboxing
Enumerations
Enhanced, for-each style for loop
Variable-length arguments (varargs)
Static import
Formatted I/O
Various upgrades to the API

All of these features represent major enhacments to Java. However, generics is the most far-reaching in its impact on day-to-day programming, with autoboxing/unboxing coming in second. Enumerations are nice to have, and the "for-each" for loop is very convenient. The ability to easily format ouptut via the new Formatter class and printf() method is a real plus, especially for new Java programmers.

Perhaps the new feature with the most promise, however, is metadata (also called annotations). This feature gives you the ability to embed supplemental information into your program that can be used by tools. Although its a relatively small beginning, I can already guess where its going.
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Warren]: The new for loops, for example, are quite cryptic ... they needed a keyword rather than a colon. (If the colon means "in", why not just use "in"?) I think they could have put in a context sensitive keyword without breaking existing code....

Like Nicky, I use "Reader in..." and "InputStream in" fairly often. And let's not forget System.in.

I suppose Sun could make the new keyword context-sensitive, but to me that introducing unneceesry complexity to the language rules. All other keywords are simply illegal as identifiers. That's easy to understand. It's a bit odd to say that in is a keyword, but it's OK as an identifier unless it's the third word in a for loop. Easier to just let people use : - it's easy to adapt to; just a little odd at first. No big deal, IMO. If we were designing a new language from scratch it would be different, but we're not...
 
Jim Yingst
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Warren]: Did they also get the threading improvements in?

There's the java.util.concurrent package, that's the main new thing. Pretty useful if you're doing anything fancy with threads, IMO. There are also some other new features.
 
author
Posts: 799
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:
Well, if we could, our team would jump to using Tiger yesterday - mainly because of generics. Unfortunately, we are probably stuck with 1.4 for years (some of our projects still try to escape 1.3...)



A majority of the many shops I visited over the past few years have not yet escaped 1.3. Often it's due to a dependency on a major third party framework. So I can understand the heavy emphasis of Sun on compatibility. Yet it still doesn't seem to sell the move to new versions as much as one might think or hope. My current client is just now moving to 1.4.

-Jeff-
 
Pradeep bhatt
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

So I can understand the heavy emphasis of Sun on compatibility



Does java.sql.Connection interface in 1.3 work in 1.4?

No.

1.3 code breaks.
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Pradeep Bhat:


Does java.sql.Connection interface in 1.3 work in 1.4?

No.

1.3 code breaks.



I think , it's can work but may be some method is deprecated.

You can see more detail about compatability if java at ::

http://java.sun.com/j2se/1.4.2/compatibility.html


 
reply
    Bookmark Topic Watch Topic
  • New Topic