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
Difference between a class and an object?
Difference between final and effectively final ? Why is effectively final even required ?
What are the differences between stringbuffer and stringbuilder?
How static variable work in java?
Difference between default and protected access specifiers?
Which variables are stored in heap?
Can we compare two strings in java?
Explain the reason behind ending a program with a system.exit(0)?
What is boolean strategy?
Explain the features of java?
Why does java not allow multiple public classes in a java file ?
Is set sorted in java?
Explain creating threads by extending thread class ?
What are the 6 functions?
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.