Java's __________ feature can be used to manage a collection of test data in Selenium.

  • ArrayList
  • Encapsulation
  • Generics
  • Inheritance
Java's Generics feature allows the creation of parameterized classes and methods, enabling the management of a collection of test data with type safety in Selenium. Generics provide flexibility and reusability by allowing the use of a single method or class to work with different data types, enhancing the maintainability of test scripts.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *