package com.java.myapp;
public class MyClass {
public static void main(String[] args) {
String a = new String("");
String b = null;
String c = "";
if(a == null){
System.out.println("a is null");
}else{
System.out.println("a is not null");
}
if(a.equals("")){
System.out.println("a is empty");
}else{
System.out.println("a is not empty");
}
if(b == null){
System.out.println("b is null");
}else{
System.out.println("b is not null");
}
if(c == ""){
System.out.println("c is empty");
}else{
System.out.println("c is not empty");
}
}
}