Why you should not use singleton?
Which collection is thread safe in java?
What isan abstract class and when do you use it?
What is JDK? Mention the variants of JDK?
I want to print “hello” even before main is executed. How will you acheive that?
What is instance example?
what state does a thread enter when it terminates its processing? : Java thread
I have a sorting issue with a Hashmap. My constraint is that I MUST use the Hashmap and work with existing code. I do a database query and place the results in a Hashmap. When I iterate thru the Hashmap, it loses the original alphabetical sorting done by the database. So, my problem is that I must sort the results coming out of the Hashmap which is then placed into another class.
What is the difference between serial and throughput garbage collector?
Which browsers work with java?
Explain thread life cycle in java?
Can a class declared as private be accessed outside it’s package?
What are the types of statement? explain