Question
Why collection interface does not extend cloneable and serializable interface?

Answers

Well, simplest answer is “there is no need to do it“. Extending an interface simply means that you are creating a subtype of interface, in other words a more specialized behavior and Collection interface is not expected to do what Cloneable and Serializable interfaces do.
Another reason is that not everybody will have a reason to have Cloneable collection because if it has very large data, then every unnecessary clone operation will consume a big memory. Beginners might use it without knowing the consequences.
Another reason is that Cloneable and Serializable are very specialized behavior and so should be implemented only when required. For example, many concrete classes in collection implement these interfaces. So if you want this feature. use these collection classes otherwise use their alternative classes.   Your Comment




More Software Questions..
What is the inputsplit in map reduce software?

What is software configuration management?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?

What are the minimum system requirements to run Photoshop? Is it possible to run Photoshop over linux?

Which oracle package is used to manage the oracle lock management services?

What is Latch Up? Explain Latch Up with cross section of a CMOS Inverter. How do you avoid Latch Up?

What is marker interface?

What types of partitioning are there for BW?



Search
Can you Answer!!
  • Q Name the Indian who was awarded the Kalinga Prize in 2010 for the popularization of Science ?
  • Q With ever changing technology, what are safer deployment/development options to ensure apps, which are built today, will live on the upcoming versions of Fiori?
  • Q What is a will?
  • Q What is the function of garbage collection in Ruby on Rails?
  • Q Why does my MFC-based DLL only work in some applications?
  • Q What is the another name for ocean floor?
  • Q Which company provided internet facility for the first time in India?
  • Q What is a verification point?
  • Q
  • Q Why essential operators are used in coffeescript?
  • Q Which Indian economist coined the term 'Hindu rate of growth'?