adspace


What are the main components of a class in java?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

i want test pattern of zylog company and some examples also

2869