What are the Object and Class that classes used for?

Answer Posted / ashok

Object class is the ultimate super class of all classes in java.It defines maths method which are inherited by all classes in java.

Class class defines the functionality or behaviour for all classes in java that how object of class should behave according to the functionality of that class.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define linked list and its features with signature?

763


Can a vector contain heterogenous objects?

791


Explain wrapper classes in java?

749


What is an interface in java? Explain

793


In the below example, how many string objects are created?

764


How the metacharacters are different from the ordinary characters?

758


How can you make sure that your singleton class will always return single instance in multi-threaded environment?

772


How would you convert bytes to string?

734


What is lexicographically smallest string?

793


What do you mean by stream pipelining in java 8?

947


What is the advantage of preparedstatement over statement?

806


Who is the owner of java?

740


How do you reverse a word in java?

733


How many types of assembly languages are there?

717


What is meant by string is immutable?

720