File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Java Type Annotations

Raghuram Sudarsan

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?

Richard Reese
Ranch Hand

Joined: Jul 13, 2011
Posts: 84


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 ( 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:
subject: Java Type Annotations
It's not a secret anymore!