I encountered a statement in java
while ((line = reader.readLine()) != null) {
out.append(line);
}
How assignment operations return value in Java? As the statement we are checking is line=reader.readLine() and comparing it with null. Because readLine will return string , how exactly we are checking for null?