Define a java class.

Answer Posted / hrindows@gmail.com

A class in Java is a blueprint that includes all your data. A class contains fields (variables) and methods to describe the behavior of an object. Let’s have a look at the syntax of a class.
class Abc {
member variables // class body
methods}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of variable is error flag?

827


Why stringbuffer is faster than string?

783


Is hashset ordered?

764


Why char array is preferred over string for storing password?

837


Can this keyword be used to refer static members?

786


What is methods in java?

768


What is arrays sort in java?

756


What are the kinds of polymorphism?

828


Can a class be private or protected in java?

798


What are the basic concepts of OOPS in java?

759


What is meant by class and object in java?

735


What is your platform?s default character encoding and how to know this?

2006


What are Normalization Rules? Define Normalization?

764


What is the use of volatile in java?

806


Explain the private protected method modifier?

746