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
write complete application to play game tictactoe

How do you start the Energy consumption program

which concept is used to connect the networking in java

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 incorre

Need java programmer for an assignment "Prepare a program that will accept a sequence of file names as command-line arguments. These files will consist of ASCII text representin

I need to Make clone of an Android app Project Description: Make a total duplicate of the App: Camp and RV Campgrounds Plus The only difference will be the name (as it

need help in assignment

I want someone to fix some bugs in a java app Project Description: I have a small app in java, but it has some issues, the app is running. But we need to make it work more st

Messaging is a method of communication among software components or applications. A messaging system is a peer-to-peer facility: A messaging client can send messages to, and receiv

What are the List interface and its main implementation? List helps in collections of objects. Lists may include duplicate elements. Main implementations of List interface are