Skip to content

Commit a0e9223

Browse files
authored
Create Promotion.java
1 parent bb141aa commit a0e9223

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

pitfalls/Promotion.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
void main() {
2+
3+
byte x = 10;
4+
byte y = 20;
5+
6+
var res = (Object) (x + y);
7+
8+
IO.println(res);
9+
IO.println(res.getClass().getName());
10+
}

0 commit comments

Comments
 (0)