aspose file tools*
The moose likes Features new in Java 8 and the fly likes Java Type Annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Features new in Java 8
Bookmark "Java Type Annotations" Watch "Java Type Annotations" New topic
Author

Java Type Annotations

Raghuram Sudarsan
Greenhorn

Joined: Nov 09, 2010
Posts: 2
Hi Richard,

With the Java SE8 we have the java type annotations introduced.
Do you look at these type annotations as a replacement for the code level validations we have been doing so far?
Were these created with performance enhancement in mind too?

Thanks,
Raghu
Richard Reese
author
Ranch Hand

Joined: Jul 13, 2011
Posts: 84
    
    5

Raghu,

Type annotations can be used as an alternative to code level validation. In many cases they will be easier to use once they have been setup properly. I believe we will see tools start using these more often. With regard to performance, EnerJ (http://spectrum.ieee.org/computing/software/enerj-the-language-of-goodenough-computing) illustrates how to make tradeoffs between performance and energy usage on mobile devices. Other types of tradeoffs are possible.


Richard Reese
Java 8 New Features: A Practical Heads-Up Guide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Type Annotations