Latest Answer : as vector is synchronized class so execution wil be slower then arraylist,but that will be thread safe.arraylist execution fast but not thread safe. ...
Latest Answer : SAX Historical Background! Simple API for XML! Started as community-driven project "xml-dev mailing list! Originally designed as Java API "Others (C++, Python, Perl) are nowsupported! SAX 2 "Namespaces SAX Features! Event-driven ...
Answer posted by pravash on 2005-06-08 02:16:34: The PreparedStatement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement. The
Latest Answer : The PreparedStatement is a slightly more powerful version of a Statement, and should always be at least as quick and easy to handle as a Statement. The PreparedStatement may be parametrizednull Most relational databases handles a JDBC ...
Latest Answer : >> An object is a specific form of an instance: the instance of a class. >> There are other forms of instances - for example -- in UML, a link is an instance of an association. -- A process can be an instance of RUP ...
Latest Answer : Vector was used in the older version of java where all the methods are synchronised for thread safety, but since it was creating a lot of performance problem ArrayList was introduced where none of the methods are synchronised ...
Latest Answer : Hashtable does not allow null values or null keys, whereas hash map allows null keys and null values. Hashtable is synchronzied whareas hashmap is not synchronized. In case of single thread using hashmap is faster than the hashtable. In case of multiple ...
Latest Answer : You can do both operations with a single Java connection but you need two seperate statements to execute queries or use stored procedures to execute both queries. ...
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...! ...