what is the output(in java)

6 views
Skip to first unread message

Neha

unread,
Sep 2, 2011, 1:53:10 PM9/2/11
to Knowledge Test
public static void main(String[] args) {
int x=10;
x=x++;
System.out.println(x);
}

Neha

unread,
Sep 2, 2011, 1:54:04 PM9/2/11
to Knowledge Test
public static void main(String[] args) {
int x=10;
int y=x++;
System.out.println(x+" "+y);
}

TheSuyog

unread,
Oct 15, 2011, 8:28:51 AM10/15/11
to knowledge-...@googlegroups.com
HAHAHA! No reply... :P

Binal Dave

unread,
Aug 8, 2018, 4:09:52 AM8/8/18
to Knowledge Test
output 11
Reply all
Reply to author
Forward
0 new messages