Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Java Articles
Page 439 of 450
How to put two public classes in a Java package.
Yes. The only condition is to have one public class in separate java file.
Read MoreHow to put two public classes in a Java package.
Yes. The only condition is to have one public class in separate java file.
Read MoreHow to put two public classes in a Java package.
Yes. The only condition is to have one public class in separate java file.
Read MoreIs there any tool that can convert an XSD file to a Python class as JAXB does for Java?
I would recommend generateDS for converting a XSD file to a Python class . In my opinion, it is a good tool for the said purpose.It (generatS) generates the Python class with all methods (setters and getters, export to XML, import from XML). It does a good job and works very well !.
Read MoreDifference between HashMap and HashTable in Java.
HashMap is non-syncronized and is not thread safe while HashTable is thread safe and is synchronized. HashMap allows one null key and values can be null whereas HashTable doesn't allow null key or value. HashMap is faster than HashTable. HashMap iterator is fail-safe where HashTable iterator is not fail-safe. HashMap extends AbstractMap class where HashTable extends Dictionary class.
Read MoreHow to avoid Java code in jsp page?
You can use JSTL, JSP Standard Tag Library or EL, Expression Language to avoid scriptlets.
Read MoreHow do we compare String in Java
https://www.tutorialspoint.com/javaexamples/string_compare.htm
Read MoreWhen to use LinkedList over ArrayList in Java
LinkedList should be used where modifications to a collection are frequent like addition/deletion operations. LinkedList is much faster as compare to ArrayList in such cases. In case of read-only collections or collections which are rarely modified, ArrayList is suitable.
Read MoreWhich one is faster Array or List in Java
The array is faster in case of access to an element while List is faster in case of adding/deleting an element from the collection.
Read MoreWhy can't static method be abstract in Java?
A static method belongs to class not to object instance thus it cannot be overridden or implemented in a child class. So there is no use of making a static method as abstract.
Read More