what is difference between colection and collections?

Answer Posted / srinu

Collection is the interface. which can be implemented
List,set,Queue.This interface contain only instance methods.

Collection is the class .This class contain utility methods
such as all algorithm oriented methods.This class contain
only static methods.

Is This Answer Correct ?    15 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is better stringbuilder or stringbuffer?

521


What is the parse method in java?

551


How can we use primitive data types as objects?

550


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2050


What are the different types of inner classes?

525






What is defined as false sharing in the context of multithreading?

496


How the interruptible method gets implemented?

546


What is a boolean in java?

569


What do you understand by final value?

580


Name few java.lang classes introduced with java 8 ?

525


What are exceptions

631


What is boolean law?

506


Say any two properties in beans?

626


What is thread pool? How can we create thread pool in java?

614


Explain public static void main(string args[]).

556