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 is the main functionality of the remote reference layer?

1670


How do you generate random numbers in java?

764


What is null statement?

781


What is a treeset in java?

767


Explain what is encapsulation?

831


What causes memory leaks in java?

677


What is difference between iterator and enumeration in java?

758


how to convert Java project into Maven ?

809


What are the differences between wait() and sleep()?

763


How infinite loop is declared?

770


What is multi-catch block in java?

840


What are the 8 data types in java?

759


What is composition in java?

966


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1259


What is the meaning of immutable regarding string?

755