This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Type Annotations  RSS feed

 
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
Boost this thread!