sorting java array



sorting java array..

Answer / Syed Shahid Ali

Java provides several methods for sorting arrays. One of the most common ways is using the Arrays.sort() method which sorts an array in ascending order by default. If you want to sort in descending order, you can provide a custom Comparator.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What is the testng.xml file used for?

1 Answers  


Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

1 Answers  


How can we capture screenshots in selenium?

1 Answers  


How to check which option in the dropdown is selected?

1 Answers  


what is assertion in selenium and what are the types of assertion?

1 Answers  


How to handle dropdowns in selenium?

1 Answers  


How do you send enter/tab keys in webdriver?

1 Answers  


What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium?

1 Answers  


Can we enter text without using sendkeys()?

1 Answers  


What types of cases can be automated with Selenium?

1 Answers  


How is driver.close()command different from driver.quit command?

1 Answers  


What are the different exceptions you have faced in selenium webdriver?

1 Answers  


Categories