how to create an abstract class in java

Java
abstract class scratch{
  
}abstract class Scratch{
  // cannot be static
    abstract public void hello();
    abstract String randNum();
}

interface Other{
  //all methods in an interface are abstract
    public void bye();
    String randDouble();
}
Source

Also in Java: