Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
2 6281if 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 33202How 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 8866what is difference between abstract and interface? can i give real time example for the two topics?
7 13177
How many types of design patterns are there?
What is a bubble sort in java?
how does the run() method in runnable work? : Java thread
Can we change the value of static variable?
How do you calculate roots in java?
What is an interface in java? Explain
Can constructor be static or final?
What does localhost mean?
What is the difference in between cpp and java? Can u explain in detail?
how do I create a runnable with inheritance? : Java thread
What is the purpose of default constructor?
What do you mean by of string::valueof expression in java 8?
How can we avoid including a header more than once?
What are nested classes in java?
Does java trim remove newline?