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
Can we have any code between try and catch blocks?
What is a nested class?
How many types of memory areas are allocated by JVM in java?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? Or extending thread class or implementing runnable interface. Which is better? : Java thread
What is data type example?
how come we know the object is no more used in the class?
What are the advantages of encapsulation in java?
What is complexity and its types?
how are methods defined?
What is the difference between synchronized and synchronized block?
What are different ways of object creation in java ?
Explain covariant method overriding in java.
What is e in java?
What is java volatile?
Why java uses the concept of the string literal?