How does enum work in java?
Answer / Virendra Prakash
An Enum (enumeration) in Java is a special data type that represents a set of named constants. Enums can be used to create a group of related constants, and each constant within an Enum is automatically given an instance variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
When should I use singleton pattern?
what are the oops concept in java explain with real time examples
24 Answers Accenture, Bosch, Consummate Technologies, CTS, Current Technologies, iNautix, Infosys, Kekran Mekran, QA InfoTech, RTRT, SofTech, Tech Mahindra, Thorogood, Timios, Wipro,
Give few difference between constructor and method?
What is java thread dump, how can we get java thread dump of a program?
Can you have an inner class inside a method and what variables can you access?
can any one send me the example program of immutable class?
What variables are stored in stack?
What is a generic data type?
What are the differences between this and super keyword?
What is the difference between array and array list in java?
How do you check if a string is lexicographically in java?
What is identifier with example?