Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
2 6424if 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 33481How 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 9001what is difference between abstract and interface? can i give real time example for the two topics?
7 13438
Why is string class considered immutable?
What is the difference between import java.util.date and java .util?
What is toarray method in java?
Is ruby built on java?
What is public static?
Is a class subclass of itself?
What is Java Shutdown Hook?
Difference between == and .equals() ?
What is difference between equal and == in java?
What is the difference between synchronized and synchronized block?
What 5 doubled?
What is output buffer?
How java enabled high performance?
What is the return type of the main method?
What is integer valueof?