GeekInterview.com
Series: Subject: Topic:
Question: 6 of 124

Common Design Pattern

What is command design pattern? Explain this pattern based on below scenario Map m=new HashMap(); HashMap m=new HashMap(); What is difference between Map m=new HashMap(); HashMap m=new HashMap();
Asked by: mannam haribabu chowdary | Member Since Aug-2012 | Asked on: Aug 27th, 2012

View all questions by mannam haribabu chowdary   View all answers by mannam haribabu chowdary

Showing Answers 1 - 1 of 1 Answers

The main difference of creation of hashmp instance

HashMap hm = new HashMap(); Here we are getting the HashMap methods only will get inherited.

Where as
Map mp= new HashMap(); // Here will get the Map interface methods inherited into class.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Core Java Interview Questions

EJB Interview Questions

Hibernate Interview Questions

Java Interview Questions

Java Patterns Interview Questions

JDBC Interview Questions

JMS Interview Questions

JSP Interview Questions

Java OOPS Interview Questions

Ruby Interview Questions

Servlets Interview Questions

Spring Interview Questions

Struts Interview Questions

Websphere Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.