How to extract HashMap values?

Answer Posted / prakash

By using Iterator interface and by using enhanced for
loop(for each for loop).

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you differentiate abstract class from interface?

532


Which data type is class in java?

553


How to optimize the javac output?

602


What is append function?

572


What's the default access specifier for variables and methods of a class?

518






What is the syntax and characteristics of a lambda expression?

561


Can we override final method?

571


What are the differences between heap and stack memory in java?

541


What is type inference in java8?

582


What mechanism does java use for memory management?

494


Is char a data type in java?

545


What is difference between == and === in js?

551


Give the difference between the println method and sqrt method?

625


how to deploy apache tomcat server to weblogic server in java

1599


Which class is the superclass for all the classes?

535