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
What is the main functionality of the remote reference layer?
How do you generate random numbers in java?
What is null statement?
What is a treeset in java?
Explain what is encapsulation?
What causes memory leaks in java?
What is difference between iterator and enumeration in java?
how to convert Java project into Maven ?
What are the differences between wait() and sleep()?
How infinite loop is declared?
What is multi-catch block in java?
What are the 8 data types in java?
What is composition in java?
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?
What is the meaning of immutable regarding string?