What are the non-final functions in java object class?, JAVA Programming

 

The non-final functions are clone (), finalize (), toString (), equals (), hashCode () and. The other methods like wait (), getClass (), notifyAll (), notify () etc are final functions and therefore cannot be overridden.  

  The hashCode() and equals() methods have to be very important, when objects implementing these two functions are added to collections. If not implemented or implemented incorrectly at all then your objects added in a collection like a Set, Map or List can behave strangely and also is hard to debug.

 

Posted Date: 7/25/2012 1:36:47 AM | Location : United States







Related Discussions:- What are the non-final functions in java object class?, Assignment Help, Ask Question on What are the non-final functions in java object class?, Get Answer, Expert's Help, What are the non-final functions in java object class? Discussions

Write discussion on What are the non-final functions in java object class?
Your posts are moderated
Related Questions
Spring - JSF integration is useful when an event handler wishes to explicitly invoke the bean factory to make beans on demand, such as a bean that encapsulates the business logic t

WHY WE USE JAVA IN PROGRAMMING INSTEAD OF OTHER PROGRAMMING LANGUAGE

Website for swapping/selling books Project Description: Seeking a website where students can sell and buy books. I want them to swap books as well. Payment options are requir

write algorithm to perform the following operations on it create,insertion,deletion,for testing overflow and empty conditions.

You are required to write a program that is going to be used to store the student details of a particular school.  This school caters for students aged between 5 years to 15 years.

Explain the difference between pre-emptive scheduling and time slicing ?

Why are JSP pages the preferred API for creating a web-based client program? Because no plug-ins or security policy files are required on the client systems (applet does). Also,

how would I become expert in collection framework

Problem 1 Explain and Define the following concepts with appropriate examples a) Superclass b) Subclass c) Inheritance d) Exceptions e) Stream classes >>Defining and expl

Java developer with spring framework prerequisite from anywhere Let me know that you have proven experience in java with spring frame work. Send some sample data and provide inf