0
What happens when you call methodOfA() in the below class?
class A { int methodOfA() { return (true ? null : 0); } }
3 odpowiedzi
0
This will cause an unckecked exception in Java: NullPointerException.
0
0
class A { int methodOfA() { return (true ? null : 0); } }