java.lang.nullpointerException

// Nullpointer
class Cat{
  String name;
  double weight;
  
  public Cat(String name,double weight){
    this.name=name;
    this.weight=weight;
  }
  public String getName(){
    return this.name;
  }
  public static void mani(String[]args){
    Cat cat;// nullpoiterexception;
    cat.getName();
  }
Itchy Iguana