final LinkedList<String> list =new LinkedList(); list = null; //error, The final local variable list cannot be assigned. It must be blank and not using a compound assignment final LinkedList<String> list =new LinkedList(); list.add(null); //this is ok.