What are the main components of a class in java?



What are the main components of a class in java?..

Answer / Rahul Dev

"The main components of a class in Java are:n- Class Name: The name given to the class.n- Access Modifiers: Determines the accessibility of the class, its variables, and methods.n- Variables (instance or class level)n- Methodsn- Constructorsn- Inheritance and Polymorphism concepts can also be part of a class."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More J2EE Interview Questions

What is j2ee product?

1 Answers  


Explain the four types of container that the j2ee specification defines

1 Answers  


What is architecture neutral in java?

1 Answers  


Describe secure socket layer (ssl)?

1 Answers  


What are the four components of j2ee application?

1 Answers  


What is java ee server?

1 Answers  


What type of code is java?

1 Answers  


Is j2ee a framework?

1 Answers  


What are the advantages of object-relational mapping (orm)?

1 Answers  


What are j2ee technologies?

1 Answers  


What is a j2ee container?

1 Answers  


What is authorization constraint?

1 Answers  


Categories