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

Difference between a class and an object?

583


Difference between final and effectively final ? Why is effectively final even required ?

559


What are the differences between stringbuffer and stringbuilder?

543


How static variable work in java?

602


Difference between default and protected access specifiers?

506






Which variables are stored in heap?

543


Can we compare two strings in java?

560


Explain the reason behind ending a program with a system.exit(0)?

602


What is boolean strategy?

630


Explain the features of java?

597


Why does java not allow multiple public classes in a java file ?

3454


Is set sorted in java?

521


Explain creating threads by extending thread class ?

580


What are the 6 functions?

516


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

1574