What Pawel said is right. You will learn more if you follow his guidelines.
To answer you question, Boolean.valueOf() returns boolean value true or false if the string argument is not null and is equal, ignoring case, to the string "true".
Since you are passing "True", it will return true each time. Now ternary operator will return first argument if condition is true, so it will return "bye"
In short, it will print "byebye"