posted 18 years ago
Hi all I have little coufsion about interface and class.
I have to use some own defined Constant in my project what should be the best approach.Should I make an interface or a class which will have the dsired constant varaibles.
so please tell me whihc one is best in terms of memory,performace..
package com.test;
public class MyconstantClass {
static final int WXY=9;
static final int ABC=9;
}
or
package com.test;
public interface MyConstantInterface {
int ABC=1;
int xyz =3;
}
Thanks