3
Answers

&& and & operator in JAVA

Photo of Mohan Rathour

Mohan Rathour

13y
1.9k
1
HI
What can go wrong if you replace && with & in the following code:
String a=null; if (a!=null && a.length()>10) {...}

Answers (3)