Possible Duplicate:
Checking for null - what order?
Can anyone please tell me what is the better approach in validating a string value for 'null' and why?
String user = userService.getUserName(accID);
1) if(user != null) {
..
}
2) if(null != user) {
..
}