What is a key in java?



What is a key in java?..

Answer / Raj Ratna Singh

In Java, a key is a unique identifier used to associate values with specific entries in data structures like Hashtable (now HashMap), TreeMap, etc. Each entry in these collections can have only one key, but a key may correspond to multiple values.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a prefix function.write down a code to compute prefix function.

1 Answers  


Explain try and catch keywords in java?

1 Answers  


How do you square a number in java?

1 Answers  


how to make hashmap object as synchronized object?

2 Answers   BOB Technologies,


Who developed JScript language?

3 Answers  


How will you convert an ArrayList to Arrays?

4 Answers   KPIT,


While opening the file, what type of exceptions can be caught?

3 Answers  


What is an anonymous class?

1 Answers   IBM,


can we create a instance for intwerface?

3 Answers  


what is tempplate pattern

4 Answers   IBM, RBS,


how u do unit testing?

2 Answers   iFlex,


What is argument in java?

1 Answers  


Categories