Posts

Showing posts from May, 2021

Lamda expressions

Image
 Lamda Expressions in Java: Default Methods in Interface: clich here without effecting implementation classes if we want to add new methods to interface then  we default methods we can overide default methods in implementation classes or we can use deault implentation provided in interface it is up to you. Default methods shold not be the methods of object classes. Diamond problem can occur if a class implemts 2 inerfaces having same methods, the solution is discussed in above link. Static Methods in Interface: click here static methods are not part of implementation classes by deault.So you cannot override static methods in implentation classes. Since it is not part of implementation classes, you cannot call it by creating object of implementation class. Only way to call static method in interface is.InterfaceName.methodName() To define general utily methods which never talks about objects we use static methods inside interface Functional Interface: click here An interface wi...

Concurrent Collections in java

Image
 Concurrent Collections in java by durgasoft: Lecture 1:Need of concurrent collections Lecture 2:Difference between traditional and concurrent collections Lecture 3:ConcurrentMap Methods Lecture 4: Concurrent HashMap Details Lecture 5:Concurrent HashMap Program 1 Lecture 6: Concurrent HashMap Program 2 Lecture 7: Difference between HashMap & ConcurrentHashMap Lecture 8: Difference between ConcurrentHashMap,synchronizedMap and Hashtable Lecture 9:CopyonWriteProperties part-1 Lecture 10:  CopyonWriteProperties part-2 Lecure 11:CopyOnWriteArrayList Constructors and Arrays Lecture 12: CopyOnWriteArrayList Program-1 Lecture 13: CopyOnWriteArrayList Program-2 Lecture 14: CopyOnWriteArrayList Program-3 Lecture 15: CopyOnWriteArrayList Program-4 Lecture 16: Difference between ArrayList and CopyOnWriteArrayList Lecure 17:Difference between CopyOnWriteArrayList,synchronizedList and Vector Lecture 18:CopyonwriteArraySet Lecture 19: Difference between CopyOnWriteArraySet and Synchroni...