Explain about vector, dictionary,hash table, property
classes?
Answer / ravikiran(aptech mumbai)
vector is a legacy class which contains all static methods
dictionary is a sub class of hastable and is used to store
the objects as key-value pairs
hashtable is used to store the objects as key value pairs
and is a legacy class and doenn't allow null keys and null
vlaues
property is subclass of hashtable used to save the objects
Is This Answer Correct ? | 8 Yes | 3 No |
How do you control extraneous variables?
Where is the singleton class used?
Can we have static methods in an interface?
how u do unit testing?
if a java file without any source code is valid java file?
Can you declare a static variable in a method?
What is the difference between static and non-static variables?
What is deserialization?
what is collatration?
How a class can implement an interface?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
What is the meaning of 3 dots in java?