How to sort elements in a parallel array in java?



How to sort elements in a parallel array in java?..

Answer / Priti Vishnoi

In Java, arrays are not parallel by default (i.e., you can't have two arrays of different data types with the same index). If you mean sorting elements in separate arrays simultaneously, this is generally not possible because arrays do not support multiple data types.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the basic interfaces of java collections framework?

1 Answers  


How do you reverse a list?

1 Answers  


Are true and false keywords?

1 Answers  


What happens if main method is not static?

1 Answers  


Explain garbage collection in java?

1 Answers  


in a console we r giving java <class name> if r pressing enter where it'll goes

2 Answers   CSC,


What is low level language in computer?

1 Answers  


What is meant by object oriented programming – oop?

1 Answers  


What is linkedlist in java?

1 Answers  


What lambda means?

1 Answers  


Can we extend private class in java?

1 Answers  


What happens when the main() isn't declared as static?

1 Answers  


Categories