can we declare enum within a class.............
like
public class EnumTypeDeclarations
{
public void foo()
{
enum SimpleMeal {
BREAKFAST,LUNCH,DINNER
}
}
}
I have seen this question somewhere in mock
test of scjp1.6(not known where)
but i am really confused about it.........as of now i have seen enum is declared as seperate from class......
could you please tell whther its possible to declare it ornot,,,,,,