Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Type Annotations

 
Raghuram Sudarsan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 84
5
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic