Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Accenture NJ mostly ask question on Collection like
1)How to sort Objcts and how treeset sort them
2)Explain mechanism of Hashcode finding in Java
3)Name some of the Sorted collection.

Answers were Sorted based on User's Feedback



Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them ..

Answer / aditya sharma

1)How to sort Objcts and how treeset sort them
Ans: *) We can sort objects using comparable and comparator
interface.
*) Treeset sort object using comparable interface.
2) Explain mechanism of Hashcode finding in Java
Ans:
1) Write [ java *Class name* ] = you will get class name and
hashCode no.
2) Implement the hashCode method in your class and call
hashCode method.
3) Name some of the Sorted collection.
Ans:
1) TreeSet
2) TreeMap

Is This Answer Correct ?    11 Yes 0 No

Accenture NJ mostly ask question on Collection like 1)How to sort Objcts and how treeset sort them ..

Answer / guest

The answer to all this question is easy but i think they
want answer from internal mechanism how it works inside
Java!!!
You think you answered well but they will always fail you
just hate then

Is This Answer Correct ?    1 Yes 10 No

Post New Answer

More Core Java Interview Questions

How to make a class or a bean serializable?

0 Answers  


What are the traverses in Binary Tree?

2 Answers   Adobe, Infosys,


How do you find the maximum number from an array without comparing and sorting?

0 Answers   BlackRock,


Explain how hashmap works?

0 Answers  


Highest level event class of the event-delegation model?

0 Answers  


Write a program to find the greatest of three numbers in java?

0 Answers  


What is JVM and is it platform independent?

0 Answers  


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion

2 Answers   SAP Labs,


Differentiate between vector and array list.

0 Answers  


I don’t want my class to be inherited by any other class. What should I do?

0 Answers  


what is instanceof operator used in java?

0 Answers  


What is the different between get and post?

0 Answers  


Categories