Can we sort hashmap in java?
No Answer is Posted For this Question
Be the First to Post Answer
Can you explain the difference b/n abtract and interface with a good example,?In what cases we have use abtract and what case interface?
What are java threads?
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.
Why webdriver is an interface?
Can we declare a class as abstract without having any abstract method?
suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?
What are the main uses of java?
where do we use init()
How can the checkbox class be used to create a radio button?
wat is final...? wat is finally...? wat is finalize....? difference between " final and finally and finalize "...?
What is meant by data hiding in java?
What does the “static” keyword mean? Can you override private or static method in java?