What will be the output? int a = 5;int b = ++a + a++;System.out.println(b);, 10, 11, 12, 13, What will be printed?int x = 10;System.out.println(x++ + ++x);, 21, 22, 23, 24, Identify the output:int a = 10;if(a = 5)System.out.println("True");elseSystem.out.println("False"), True, False, Compile-time error, Run time error ) Runtime error Runtime error , What will be the output?int i = 1;while(i <= 3) {System.out.print(i + " ");i++;}, 1 2 3, 1 2, 1 2 3 4, ) Infinite loop ) Runtime error Runtime error , What will be the output?int a = 5;int b = 10;System.out.println(a > b ? a : b);, 5, 10, true, false ) Runtime error Runtime error .
0%
Java basics
Share
Share
Share
by
Dineshkumars
Edit Content
Print
Embed
More
Assignments
Leaderboard
Show more
Show less
This leaderboard is currently private. Click
Share
to make it public.
This leaderboard has been disabled by the resource owner.
This leaderboard is disabled as your options are different to the resource owner.
Revert Options
Spin the wheel
is an open-ended template. It does not generate scores for a leaderboard.
Log in required
Visual style
Fonts
Subscription required
Options
Switch template
Show all
More formats will appear as you play the activity.
)
Open results
Copy link
QR code
Delete
Continue editing:
?