What\'s wrong with the below Code
public static void main(String[] args){
public static final String Name = \"Robin Wilson\";
}
Static declaration of a component makes in available on a class level. Declaring component in a method makes in available in method's stack memory hence can only be accessed through an object. Static belongs to the whole class. Therefore their is no point in declaring a variable static. You'll even get the compile time error if you try to do so. Final keyword has nothing related to memory.