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/
25 Multithreading Interview Questions (With Example Answers) | Indeed.com
https://www.indeed.com/career-advice/interviewing/multithreading-interview-questions
https://www.indeed.com/career-advice/interviewing/multithreading-interview-questions
Indeed Career Guide
24 Multithreading Interview Questions (With Example Answers)
Learn about 24 common interview questions related to multithreading and review example answers to help you prepare for an interview with a hiring manager.
In Iterator, hasMoreElements() method of Enumeration has been changed to:
Anonymous Quiz
28%
hasNextElement()
23%
isNext()
44%
hasNext()
5%
name remains same