Tag:Gender

  • Java custom exception

    Time:2019-8-4

    Custom exception   1、Inheritance class       Generally, you choose to inherit Exception.andRuntimeExceptionIf the caller is not required to handle the thrown exception, inheritRuntimeException。   2、Custom Exception Class Construction Method     Code examples: People entity class public class People { String name=””; int age=0; String sex; public String getSex() { return sex; } public […]