Sunday, June 25, 2017

Exception in ternary operator

Object a = (null==mode||"".equalsIgnoreCase(mode))?new Exception("ssssss"):"hj";
System.out.println(a);

No comments:

Post a Comment