abstract method have modifiers java code example Example: java abstract modifier public abstract void test();