The Java ExecutorService is an interface which is present inside java.util.concurrent package. The ExecutorService interface is a subinterface of the Executor interface. It allows us to execute tasks asynchronously on threads. It allows us to submit tasks for execution. With …

ExecutorService in Java Read more »

“Nuage Laboratoire, when translated, reveals its meaning as ‘Cloud Lab,’ while ‘Test Lab’ can be equivalently expressed as ‘Laboratoire Test.’“ If you’ve ever navigated the intricate world of app testing, chances are you’ve encountered the powerhouse known as Firebase Test …

Who is Nuage Laboratoire and strange email id xyz………@cloudtestlabaccounts.com after published Android app in play store Read more »

SOLUTION :- package p2; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; public class MapExample { public static void main(String[] args) { Map<Integer,String> map =new HashMap<>(); map.put(1, “David”); map.put(2, “Moksa”); map.put(3, “Poll”); map.put(4, “Iliana”); for(Entry<Integer, String> v1:map.entrySet()) { System.out.println(v1.getKey()+””+v1.getValue()); } } } …

Q. How to Create Map Object ? Create Map Object put some element on it and iterate one by one . Read more »

Ans:- stream will perform the following operations:- 1.Intermediate operations2.Terminal operations 1.Intermediate operations:- the operations which are performed in b/w streams of objects are known as Intermediate operations. a. filter()b.map()c.sorted()d.distinct()e.peek() 2.Terminal operations:- the operations which are performed at the end of …

What is Intermediate and Terminal Operations ? Read more »

SOLUTION :-  Test.java package p2 ; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; public class Test { public static void main(String[] args) { List<Employee> list= new ArrayList<>(); list.add(new Employee(1, “James”, 70000)); list.add(new Employee(2,”David”,15000)); list.add(new Employee(3,”Iila”,5000)); List<Employee> list1=list.stream().filter(i->i.getSalary()>20000).collect(Collectors.toList()); // System.out.println(list1); for(Employee e:list1) …

Q. If we have Employee List and in the List have Id, name ,salary then ,I want Salary is greater than 20000 by using Java8 Feature. Read more »