Wrapper Quiz +

Is following code compiling? If yes, what is the result?

public class Calculation {
    public static void main(String[] args) {
        Long result = 3l;
        result += new Long(3);

        if(Boolean.parseBoolean("Wrong") || Boolean.parseBoolean("True")) {
            result++;
        }

        System.out.println("Result: " + result );
    }
}

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>