def Abc(){
return this.abc?.equals(bcd.toString())
}
Also, trying to convert this to Java.
abc is a String. I understand that the '?' operator would do a null check and 'abc' it is not null it would go ahead and execute the equals part and return true or false on the basis of it, but what if it finds a null?