Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How will you sort the elements of array in descending order?



How will you sort the elements of array in descending order?..

Answer / Manoj Agarwal

To sort an array in descending order, you can use the Arrays.sort() method in Java with a custom Comparator that reverses the natural ordering of elements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is bubble sort used for?

1 Answers  


What is the difference between array and list?

1 Answers  


What is complete binary tree in data structure?

1 Answers  


Does treemap sort on key or value?

1 Answers  


Do you know how to find if linked list has loop?

1 Answers  


What is sorting in data structure?

1 Answers  


How do you create a tree diagram?

1 Answers  


Why might quick sort might be better than merge sort?

1 Answers  


What is array sort?

1 Answers  


What is a priority queue?

1 Answers  


What are the advantages and disadvantages of linked list?

1 Answers  


What do you mean by union-by-weight?

1 Answers  


Categories