Explain Linked HashSet
Java LinkedHashSet class is a Linked list and Hash table implementation of the Set interface. It contains unique elements same as a HashSet. Linked HashSet in Java also provides optional set operations that can maintain the order of insertion.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between calling start() and run() method of thread?
What is a copy constructor in java?
what is the main difference between string and stringbuffer? can you explain it with program?
Given: 11. public static void main(String[] args) { 12. Integer i = uew Integer(1) + new Integer(2); 13. switch(i) { 14. case 3: System.out.println(”three”); break; 15. default: System.out.println(”other”); break; 16. } 17. } ‘What is the result? 1 three 2 other 3 An exception is thrown at runtime. 4 Compilation fails because of an error on line 12.
What are new features introduced with java 8 ?
How do you reverse sort a list in java?
Explain constructors and types of constructors in java.
After compilation of java program we'll get .class code. If it's generated in OS Windows XP will it work on OS Linux? If yes why? If no why?
What is compile time polymorphism?
20 Answers CTS, Elementus Technologies, Oracle,
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
How do you call a reference in java?
What is pojo class in java?