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 difference between class forname and new?

542


What do you mean by chromounits in java8?

524


What is toarray method in java?

554


What are the advantages of java?

508


Difference between arraylist and hashset in java?

536






How to retrieve data from database in java using arraylist?

522


How do you define a method?

508


Compare overloading and overriding?

557


What is the purpose of garbage collection in java? When is it used?

534


What is a Transient Object?

630


Which is dependent variable?

491


Explain about class in java?

608


What is called module?

561


What is a bufferedreader?

522


What is meant by null and void?

531