Iterator returned by ConcurrentSkipListMap on key, value and entry is?
Anonymous Quiz
44%
Fail-fast
46%
Fail-safe
10%
None
Which Set implementation is sorted and synchronized?
Anonymous Quiz
36%
LinkedHashSet
27%
ConcurrentSkipListSet
27%
TreeSet
10%
CopyOnWriteArraySet
JAVA Related Material ➡
https://drive.google.com/folderview?id=1Zr1BJvFX7P0WG0WEZfbB5SyVYSb_4knk
https://drive.google.com/folderview?id=1Zr1BJvFX7P0WG0WEZfbB5SyVYSb_4knk
Which Map is synchronized?
Anonymous Quiz
38%
Hashtable
22%
ConcurrentSkipListMap
17%
ConcurrentHashMap
22%
All
HashMap can be synchronised by........?
Anonymous Quiz
39%
Map m=Collections.synchronizedMap(hashMap);
27%
Map m=hashMap.synchronizedMap();
27%
Map m=Collection.synchronizedMap(hashMap);
7%
None
Fill in the blank to compile the code successfully.
abstract class A{
int a=100;
public abstract void showA();
}
public class B extends A{
.............//Fill the blank
public static void main (String[] args){
A objA=new B();
objA.showA();
}
}
abstract class A{
int a=100;
public abstract void showA();
}
public class B extends A{
.............//Fill the blank
public static void main (String[] args){
A objA=new B();
objA.showA();
}
}
public class Program
{
int a;
boolean isTrue;
static int i;
public static void main(String[] args) {
Program p=new Program();
System.out.println(p.a);
System.out.println(p.isTrue);
System.out.println(p.i);
}
}
{
int a;
boolean isTrue;
static int i;
public static void main(String[] args) {
Program p=new Program();
System.out.println(p.a);
System.out.println(p.isTrue);
System.out.println(p.i);
}
}
import java.util.HashSet;
import java.util.Set;
public class Program
{
public static void main(String[] args) {
Set hashSet = new HashSet();
hashSet.add("1");
hashSet.add(1);
hashSet.add(null);
hashSet.add("null");
System.out.println(hashSet);
}
}
import java.util.Set;
public class Program
{
public static void main(String[] args) {
Set hashSet = new HashSet();
hashSet.add("1");
hashSet.add(1);
hashSet.add(null);
hashSet.add("null");
System.out.println(hashSet);
}
}
Java HashMap with Realtime Examples
http://www.javachain.com/java-hashmap-with-examples/
http://www.javachain.com/java-hashmap-with-examples/