{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# presentation7 - i =(i=2(i=8 i System.out.println(i 2 nd...

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

Some Exercises Soheil Hassas Yeganeh Computer Engineering Department Sharif University of Technology

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

View Full Document
1 st Exercise 2
1 st Exercise Write a program that computes the maximum possible value for byte, short, int, long, float, double. 2

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

View Full Document
2 nd Exercise 3 class SecondExercise { public static void main(String[] args){

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

View Full Document
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

{[ snackBarMessage ]}

### Page1 / 6

presentation7 - i =(i=2(i=8 i System.out.println(i 2 nd...

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

View Full Document
Ask a homework question - tutors are online