public class CompileTimeConstantsTest { @interface Awesome { String value(); } private static final String X = "X"; private final int a = 1; public final int b = 1; @Awesome(a < b ? X : X + X) // compiles just fine int whatever; }
Friday, July 29, 2011
Compile-time constants in Java annotation element values
In hindsight, this should've been obvious:
Subscribe to:
Post Comments (Atom)
ReplyDeleteI am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
Php course in chennai
wow great Article, the details you have provided are much clear, easy to understand, if you post some more Article, it will be very much useful for me.
ReplyDeletePHP Training in Chennai
Very nice post with lots of information. Thanks for this updates.
ReplyDeleteui ux design course in Chennai
ui ux designer course in Chennai
ui ux course in chennai
ReactJS Training in Chennai
Web Designing Course in chennai
web designing training in chennai
Tally course in Chennai
ui ux design course in Porur
ui ux design course in Tambaram
ui ux design course in Adyar
thanks for your details its very useful nice article I got more information web design company in velachery
ReplyDeleteWow i can say that this is another great article as expected of this blog.Bookmarked this site.. Kopar at Newton at Newton MRT Station
ReplyDeletethe blog is more useful and many important points are there.keep sharing more like this type of blog. keep it up guys
ReplyDeleteAi & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai
Big data is a term that describes the large volume of data – both structured and unstructured – that inundates a business on a day-to-day basis. big data projects for students But it’s not the amount of data that’s important.Project Center in Chennai
ReplyDeleteSpring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Corporate TRaining Spring Framework the authors explore the idea of using Java in Big Data platforms.
Spring Training in Chennai
The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
I exactly got what you mean, thanks for posting. And, I am too much happy to find this website on the world of Google. Europa-Road targonca szállítás Debrecen
ReplyDelete