How should a developer create a new custom exception class?
A. CustomException ex = new (CustomException) Exception ();
B. public class CustomException extends Exception {}
C. (Exception) CustomException ex = new Exception ();
D. public class CustomException implements Exception {}