Why are lists ordered in java?



Why are lists ordered in java?..

Answer / Rachna Chaudhary

ArrayLists and LinkedLists in Java are ordered collections, which means the elements have a defined order. This is useful when dealing with sequential data, such as a list of numbers or a sequence of events.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What are the differences between path and classpath variables?

1 Answers  


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

1 Answers   PUCIT,


Why are lists ordered in java?

1 Answers  


Can string be considered as a keyword?

1 Answers  


What is java developer skills?

1 Answers  


What is a string token?

1 Answers  


Difference between keyword and identifier.

1 Answers   TCS,


Define Wrapper Classes in Java.

1 Answers  


Is there any way to find whether software installed in the system is registered by just providing the .exe file? I have tried the following code but its just displaying the directory structure in the registry. Here the code : package com.msi.intaller; import java.util.Iterator; import ca.beq.util.win32.registry.RegistryKey; import ca.beq.util.win32.registry.RootKey; public class RegistryFinder { public static void main(String... args) throws Exception { RegistryKey.initialize(RegistryFinder.class.getResource("jRe gistryKey.dll").getFile()); RegistryKey key = new RegistryKey(RootKey.HKLM, "Software\\ODBC"); for (Iterator<RegistryKey> subkeys = key.subkeys(); subkeys.hasNext();) { RegistryKey subkey = subkeys.next(); System.out.println(subkey.getName()); // You need to check here if there's anything which matches "Mozilla FireFox". } } }

1 Answers   Google,


what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }

3 Answers   TCS,


What are data types in programming?

1 Answers  


What is Collections API?

1 Answers  


Categories