Why Set interface contains unique elements, what internally
implemented for this so that it contains unique elements?
Answer Posted / jayakumar
because it implement hashcode and equals method implicitly
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What are the advantages of inner classes?
How does map works in java?
What type of language is java?
What is wrapper class html?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is an class?
For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green White will have 1 Weight. Red and Green carry no weights. Shortest path is the path with less weight when you add up the weights in the path.
How to find the index of the largest number in an arraylist java?
Does string is thread-safe in java?
What is the synchronized method modifier?
Can you explain the usages of class.forname()?
How do you check if a string contains only numeric digits?
Can I override protected method in java?
What is difference between fail-fast and fail-safe?
What is gc()?