Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
2 6173if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...
10 32906How to sort a vector elements that contains the user define class object? (Note: If Suppose consider, A Student class contain two data members. They are String studentName and int rollNo. I am creating Four objects for this class, each object contains students details like name and roll no. Now i am storing that objects in vector and if i retiving the elements from the vector means then it should be display in sorting order)
3 8736what is difference between abstract and interface? can i give real time example for the two topics?
7 12987
How do you check if two strings are equal in java?
What is the use of accept () method in java?
Is hashset ordered java?
Difference between keyword and identifier.
Why a dead thread occurs?
How to instantiate member inner class?
Can you declare a private method as static?
What is public static void main?
Why array is used in java?
What is difference between path and classpath?
What is classes in java?
Give some features of interface?
Why is logger singleton?
Differentiate between vector and array list.
How do you clear an arraylist in java?