What are the Object and Class that classes used for?

Answer Posted / ravikiran(aptech mumbai)

class is the template for members and methods to get declared
and object is the physical reality for a class and is used
to call the members and methods those are declared inside a
class

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different ways to handle exceptions?

539


Can we use catch statement for checked exceptions when there is no chance of raising exception in our code?

588


Explain thread life cycle in java?

587


What is the difference between jfc & wfc?

592


What is finally in Java?

575






Why are parameters used in functions?

527


What is the right data type to represent a price in java?

564


Difference between abstract and concrete class ?

579


What is the generic class?

529


What is incompatible types in java?

533


what is a thread pool in java and why is it used?

527


Why is java multithreaded?

533


How would overload a function based on return type?

546


5 Coding best practices you learned in java?

634


Explain notifyall() method of object class ?

664