Skip to main content

Java Collections Framework - Advantages, Goals and Interfaces





Java Collections Framework:

What is Java Collections Framework? (Must Know)
          
Java Collections Framework is group of different interfaces, classes and algorithms. In simple word, Collection means single unit of objects and framework means good architecture. 

It is best architecture to store group of reusable objects and manipulate them. Collection framework has many different interfaces, their sub interfaces and classes, their classes and sub classes. All the interfaces and classes has different purpose. 

You can perform add, edit, delete, search, sort, etc operations on group of objects as per class's methods and implementation.


Main Advantages Of Collection Framework

  • Main advantage of collection framework is it will reduces your programming efforts as there are ready made interfaces, classes and their methods which you can use directly in your program to perform operation on object collection.
  • Collection is well structure framework so you code quality and speed will be increased.
  • Anyone can use collection very easily as it's interfaces, classes and methods very easy to understand and use.

Goals of Java Collections Framework

The collections framework was designed to meet several goals, such as −
  • The framework had to be high-performance. The implementations for the fundamental collections (dynamic arrays, linked lists, trees, and hashtables) were to be highly efficient.
  • The framework had to allow different types of collections to work in a similar manner and with a high degree of interoperability.
  • The framework had to extend and/or adapt a collection easily.

Detailed description of collection framework's interfaces and it's classes is given on below given pages.
  • Java Collection Interface
  • Java List Interface
  • Java ArrayList Class
  • LinkedList In Java
  • Vector Class In Java
  • Stack Class in Java
  • Java Queue Interface
  • Java PriorityQueue Class
  • Java Deque Interface
  • Java ArrayDeque Class
  • Java Set Interface And Methods
  • Java LinkedHashSet Class
  • HashSet in Java Collection Example
  • Java SortedSet Interface
  • Java TreeSet Class

Follow my blog for More Free Selenium Tutorials to for beginners and professionals.  



Happy Testing!!


Comments

Popular posts from this blog

Top 50 Tricky Selenium Interview Questions

Previous Post: Good News for Selenium Testers 
1. What are the annotations used in TestNG? @Test, @BeforeSuite, @AfterSuite, @BeforeTest, @AfterTest, @BeforeClass, @AfterClass, @BeforeMethod, @AfterMethod 2. How do you read data from excel? FileInputStream fis = new FileInputStream (“path of excel file”); Workbook wb = WorkbookFactory.create (fis); Sheet s = wb.getSheet (“sheetName”) String value = s.getRow (rowNum).getCell (cellNum).getStringCellValue (); 3. What is the use of xpath? It is used to find the WebElement in web page. It is very useful to identify the dynamic web elements. 4. What are different types of locators? There are 8 types of locators and all are the static methods of the By class. By.id ()By.name ()By.tagName ()By.className ()By.linkText ()

Complete Selenium Topics to be a Professional Selenium Tester

Complete Topics in Selenium to be a Professional Tester Free PDF Below

SECTION 1: INTRODUCTION TO AUTOMATION TESTING
•        What is automation testing? •        When Automation Testing is needed? •        When Automation Testing is not needed? •        What is the use of automation testing? •        Different Automation Tools available in the Market. •        What is the difference between Selenium and QTP?
SECTION 2: INTRODUCTION TO SELENIUM
•        What is Selenium? •        Advantages of Selenium
SECTION 3: COMPONENTS IN SELENIUM
•        IDE Overview •        RC Overview •        Selenium-Grid •        Selenium Web Driver/Selenium 3.0
SECTION 4: SELENIUM IDE
•        Installing IDE •        IDE icons •        Recording your first test with IDE •        IDE Context Menu •        Assert •        Verify •        Adding IDE comments •        Synchronization commands •        Working on pages with AJAX •        Storing elements •        Creating test suites •        Tools  to identify elements/objects •        …

Important Update from the National Software Testing Conference 2018..!

Hello friends,
Happy to see you all after a gap!
This time I came with an important & interesting information regarding Software Testing…!
Here is the Kicker;
Here I have listed down the latest update in software testing which every software testers must know about. Automation Testing Market – Forecast 2025National Software Testing Conference 2018Automation Testing Market Overview 2025Also Read: Complete Guide to Choose Software Testing as Your Career
All the information below is collected from the report of the recent National Level Software Testing Conference 2018 held in London.

Automation Testing Market Report provides thorough backdrop investigation of Automation Testing business, with an evaluation of the previous years.
The Automation Testing Market Reports provides data on Automation Testing patterns and improvements, and target business sectors and materials, limits and advancements. 
The report broadly provides the market size, share, trends, growth and forecasts to 2025.
The st…