J
J. Bayjan
Since the static objects are null if they are not initialized. But I
don't how I can initialize static ResourceBundle.
code :
public static ResourceBundle resBundle;
if i initialize in this way
public static ResourceBundle resBundle = new ResourceBundle();
compiler error is like: cannot instantiate from class ResourceBundle
it is not a concrete class.
Yes ResourceBundle is abstract class, right? So how can i initialize
this resBundle variable. Because when I use it again later it gives
NullPointerException.
Thank you very much for your help!
Best Regards, J. Bayjan!
don't how I can initialize static ResourceBundle.
code :
public static ResourceBundle resBundle;
if i initialize in this way
public static ResourceBundle resBundle = new ResourceBundle();
compiler error is like: cannot instantiate from class ResourceBundle
it is not a concrete class.
Yes ResourceBundle is abstract class, right? So how can i initialize
this resBundle variable. Because when I use it again later it gives
NullPointerException.
Thank you very much for your help!
Best Regards, J. Bayjan!