presentation7 - i = (i=2) + (i=8)*(- - i);...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Some Exercises Soheil Hassas Yeganeh Computer Engineering Department Sharif University of Technology
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
1 st Exercise 2
Background image of page 2
1 st Exercise Write a program that computes the maximum possible value for byte, short, int, long, Foat, double. 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 nd Exercise 3 class SecondExercise { public static void main(String[] args){ int i = 0;
Background image of page 4
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: i = (i=2) + (i=8)*(- - i); System.out.println(i); } } 2 nd Exercise • What is the output of the following program? 3 class SecondExercise { public static void main(String[] args){ int i = 0; i = (i=2) + (i=8)*(- - i); System.out.println(i); } } Any Questions?...
View Full Document

This note was uploaded on 11/21/2010 for the course COMPUTER S 003 taught by Professor Izadi during the Spring '10 term at Amirkabir University of Technology.

Page1 / 6

presentation7 - i = (i=2) + (i=8)*(- - i);...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online