Which sorting algorithm is best in java?



Which sorting algorithm is best in java?..

Answer / Sourabh Sharma

The choice of a sorting algorithm in Java depends on various factors such as the size of the data, the nature of the data, and the required efficiency. Some popular choices include QuickSort for large datasets, MergeSort for efficient sorting of linked lists, and HeapSort for priority queues.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Which class is the superclass for every class in java programming?

1 Answers  


What is the difference between path and classpath variables?

1 Answers  


How much is a java license?

1 Answers  


Is nullpointerexception checked or unchecked?

1 Answers  


What is default constructors?

1 Answers  


what do you mean by marker interface in java?

1 Answers  


What is set in java?

1 Answers  


What are the special characters?

1 Answers  


How do you create a method in java?

1 Answers  


Difference between association, composition and aggregation?

1 Answers  


What is math in java?

1 Answers  


What is java instanceof operator?

1 Answers  


Categories