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 |
When finalize method is called?
Can we declare main () method as non static?
What are streams in java 8?
How will you invoke any external process in java?
Difference between default and protected access specifiers?
when should you use stringbuilder class in a program?
Can inner class have constructor?
solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..
Give a practical example of singleton class usage?
What is string builder?
what is hashmap& hashtable with example?
When is an object subject to garbage collection?