Originally posted by Swati Kadam:
class TrickyTest {
public static void main ( String args [ ] ) {
int i = 10 ; // line 1
i = ++i ; // line 2
i = i++ ; // line 3
System . out . println ( i ); // line 4
}
};
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJP 5 with 94%
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Space seems cool in the movies, but once you get out there, it is super boring. Now for a fascinating tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|