Latest Answer: class container{//put the setters and getters of key and valuesobject key=null; //acting as keyList values=null;public void Container(){key=new Object();values=new ArrayList();}public insert(object key,object values){this.key=key;this.values=values;}}class ...
Latest Answer: 1. Statis Binding : Initialize the variable like, private static HashMap map=new HashMap(); 2. Dynamic Binding: Initialize the variable like, private HashMap map; and somewhere in the method do map=new HashMap(); Please let me kknow if any change is there...! ...
How will u declare a synchronized block? What does this represent in the Declaration of synchronized block?
Latest Answer: Definitely. That is actually the prefer way to make your client code more flexible and easier to maintain.For example, in a gaming program, you have:Breakable b = Factory.createObject();b.performBreak();It doesn't matter what concret Obejct Factory.createObect() ...
If we can access a sevlet through both GET and POST methods then which methods will u declare in the servlet class?
Latest Answer: Dynamic Binding [Late Binding]:The runtime system [JVM]during runtime determines the appropriate method call based on the class of the object. This feature is called as Polymorphism. All the methods in java are dynamically resolved. ...
View page << Previous 3 4 5 6 [7] 8 9 10 11 12 Next >>

Go Top