GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 426 of 502    Print  
What happens if we pass same key and value objects in put (Object key Object value) method?

  
Total Answers and Comments: 1 Last Update: August 16, 2007     Asked by: naggeek 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 16, 2007 10:23:09   #1  
Jameel Siddique        

RE: What happens if we pass same key and value objects...
It simply adds last one it wont throw any exception that is logical mistake must taken care by programmer.
 
Is this answer useful? Yes | No

 Related Questions

Will there be a performance penalty if you make a method synchronized? If so, can you make any design changes to improve the performance

Latest Answer : Java is only pass-by-value language. Passing a reference is not possible though you can pass by value. If you want changes to reflect back then consider the primitive type in a custom class not a wrapper class i.e., to say, this class will have getter ...

Latest Answer : yes a method can be static and synchronized ...

Latest Answer : In Java Object are passed by reference and Primitive data is always pass by value ...

If there are 2 different versions of object streams on disk and only one object definition, how will the JVM reject the wrong one? Can you fool the JVM

When you have an object passed to a method and when the object is reassigned to a different one, then is the original reference lost

Does JVM maintain a cache by itself? Does the JVM allocate objects in heap? Is this the OS heap or the heap maintained by the JVM? Why

Can we declare multiple main() methods in multiple classes.ie can we have each main method in its class in our program?

give me answer 
Latest Answer : public class CSingleton {   private static CSingleton inst= null;private static int count=0;protected CSingleton() {                        ...
Read Answers (5) | Asked by : chandu

give me answer 
Latest Answer : We can use clone() method to create another instance of a singleton class.Example:SingletonObjectClass obj = SingletonObjectClass.createSingletonObject();SingletonObjectClass clone = (SingletonObjectClass) obj.clone();java.lang.Object class has a clone ...
Read Answers (1) | Asked by : chandu


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

C++ Objects and Classes

C Objects and Classes An Overview about Objects and Classes In object oriented programming language C the data and functions procedures to manipulate the data are bundled together as a self contained unit called an object A class is an extended concept similar to that of structure in C programming l
 

JavaScript Objects

JavaScript Objects Object oriented Programming in an important aspect of JavaScript It is possible to use built in objects available in JavaScript It is also possible for a JavaScript programmer to define his own objects and variable types In this JavaScript tutorial you will learn how to make use
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape