Can any one help me to understand the Code
Hi, I am new to java, please help me to understand below code.
What is the difference?
And which code is better in both application level as well as memory management.
CODE#1
abstract class MyApplicationColor
{
static class Color
{
public static final String RED="red";
public static final String BLUE="blue";
public static final String GREEN="green";
}
}
CODE#2
class MyAllicationColorClass
{
public static final String RED="red";
public static final String BLUE="blue";
public static final String GREEN="green";
}
thanks in advance.