12.8.2020 | 1 Minute

Groovy - Java Quiz

public boolean test() {
    Integer test = null;

    return test == 12;
}

Java:

a) false
b) NullPointerException
c) some weird RuntimeException

Groovy:

a) false
b) NullPointerException
c) some weird RuntimeException
d) StackOverFlowException

Correct Answers: java: b groovy: a

49o9u0

Simon

Softwareentwickler

Zur Übersicht

Standort Hannover

newcubator GmbH
Bödekerstraße 22
30161 Hannover

Standort Dortmund

newcubator GmbH
Westenhellweg 85-89
44137 Dortmund