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!
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |