Given that an application must support the languages Spanish (es) and German (de), which of the following options includes correct definitions to build resource bundles that support these languages?.
a class MyBundle_DE extends ListResourceBundle { /* code */ } class MyBundle_de extends ListResourceBundle { /* code */ } class MyBundle_es extends ListResourceBundle { /* code */ } b class MyBundle_DE extends ResourceBundle { /* code */ } class MyBundle_de extends ResourceBundle { /* code */ } class MyBundle_es extends ResourceBundle { /* code */ } class MyBundle_spanish extends ResourceBundle { /* code */ } c class MyBundle_es extends PropertyResourceBundle { /* code */ } class MyBundle_DE extends PropertyResourceBundle { /* code */ } class MyBundle_de extends PropertyResourceBundle { /* code */ } d class MyBundle_de extends Bundle { /* code */ } class MyBundle_DE extends Bundle { /* code */ } class MyBundle_es extends Bundle { /* code */ }
a
Options (b), (c), and (d) are incorrect because they don't extend the right class.
To define a resource bundle in a Java class, it must extend class ListResourceBundle.