Longest keyword chain?

Posted by pg-robban on Stack Overflow See other posts from Stack Overflow or by pg-robban
Published on 2009-11-07T21:49:54Z Indexed on 2010/05/18 6:50 UTC
Read the original article Hit count: 289

Filed under:
|

As I was typing some constants in Java I noticed I had used 4 keywords in a row, which Eclipse highlighted for me: public static final int. I then took a break from my regular coding and asked myself (and google with no relevant results) what the longest chain of keywords I can use and still have valid code. After a while, the best I could come up with was this method definition:

public synchronized static final strictfp int a() { ...

which is 6 keywords in Java. Is it possible to go 7, or even higher? What about other languages?

© Stack Overflow or respective owner

Related posts about java

Related posts about fun