Why we use static and synchronized in method for single thread model example: public static synchronized add(){}
2 5216if 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 30501How 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 7685what is difference between abstract and interface? can i give real time example for the two topics?
7 10702
What does it mean that a method or field is “static”?
How do you use compareto in java?
What are the special characters?
What are the rules for variable declaration?
What is a char in java?
Java Compiler is stored in JDK, JRE or JVM?
What is final method?
Can I extend singleton class in java?
What is main function purpose?
What are the supported platforms by java programming language?
How do generics work?
What is a treeset in java?
What is the use of set in java?
Does isempty check for null?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx