// ternary operator class a { void f1() { byte b = 4; int i = 2; boolean bo = false; long l = 5; float f = 5; double d = 45; String s; s = bo ? 1 : 2; s = bo ? 1L: 2; s = bo ? b : 2; s = bo ? b : b+2; s = bo ? b+1L : 2; s = bo ? f : f+2; s = bo ? d : 2; } void cf1() { byte[] byteArr = new byte[10]; boolean bool = true; byte i = bool ? byteArr[0] : 0; } }