what is associative array



what is associative array..

Answer / palepu sadashiv

An associative array is a very useful data structure for all kinds of application. An associative array is just a set of (key, value) pairs. Many programming languages, such as PHP and Perl (using hash variables) implement the functionality to work with these structures. Also Java incorporates associative arrays in the form of instances of the java .util.Hashtable class.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Discuss 2D arrays.

0 Answers   Amdocs,


How to sort array in descending order in java?

0 Answers  


What do you understand by Header linked List?

0 Answers   Genpact,


Can a for statement loop indefinitely?

3 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". } } }

0 Answers   Google,






What is scanner in java?

0 Answers  


diffrence b\w println() and printf()

8 Answers   NIIT,


Which method returns the length of a string?

0 Answers  


how can be object class inherited to all class in a program when java does not support multiple inheritance??

4 Answers  


What is Co-Variant return type in method overriding?

1 Answers   RBS,


Why to use nested classes in java?

0 Answers  


How are Java source code files named?

3 Answers  


Categories