Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
2 6161if 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 32862How 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 8717what is difference between abstract and interface? can i give real time example for the two topics?
7 12955
what is the volatile modifier for? : Java thread
How does remove work in java?
What does s mean in regex?
What is the difference between heap memory and stack memory?
Why is method overloading not possible by changing the return type in java?
What do you mean by collectors in java 8?
Can a class be private or protected in java?
What is the difference between member variables initialization and assignment in a constructor?
What does pointer mean?
What is the purpose of a default constructor?
What are java threads?
Which is better ascii or unicode?
What one should take care of, while serializing the object?
What are the 6 boolean operators?
What is the use of arraylist class in java?