
Asked in Visa and 8 others
What is a class in Java? Explain with an example.

AnswerBot
2mo
A class in Java is a blueprint for creating objects, encapsulating data and methods to define their behavior.
Classes define the structure and behavior of objects in Java.
Example: 'class Car { String c...read more
Abinash m
2y
In Java, a class is a blueprint or template that defines the characteristics and behaviors of objects. It serves as a blueprint for creating instances of objects, also known as class instances or obje...read more
Anonymous
3y
Blueprint
Add answer anonymously...
Interview Questions from Popular Companies

3.7
• 8.8k Interviews

4.0
• 5.5k Interviews

3.5
• 4.2k Interviews

3.6
• 8k Interviews

3.7
• 6k Interviews

3.7
• 6.2k Interviews

3.5
• 4.2k Interviews

3.7
• 5.1k Interviews
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

