Understand that conditional statements needn't always follow with opening and closing braces. Most languages will allow you to simply emit the braces if you only want to execute a single statement when the terms of the condition are met.
Meaning that the following is completely valid, for instance:
if (var1 == true && var2 == true) var3 = 'both true';
{
//block here, this is always executed regardless of the statements outcome
}
Essentially, your code does exactly this. Except your single statement is determined to be ;
(yes, this is considered a statement).
What you wrote is the same as:
if(name != null && value != null) {
// do nothing
}
System.out.println("Values not null");