等于等于null,等于等于

can we write element==null in place of null==element here or can we say element==null and null==element same

public String readValueFromElementAndCheckForEqual(WebElement element) {
        if(null==element) {
            log.info("WebElement is null..");
            return null;
        }
         else {
            return null;
        }
}
评论