Exam 1z0–819 Oracle Certified Professional: Java 11 Developer — pass notes

IntStream is = IntStream.of(1, 3, 5);
int x = is.filter(i->i%2 == 0).average(); //1
System.out.println(x);
int y = is.filter( i->i%2 != 0 ).sum();//2
System.out.println(y);
is = IntStream.of(1, 3, 5, 9);
int z = is.filter( i->i%3 != 0 ).count();//3
System.out.println(z);
var collection = new HashSet<>();
collection.add(1);
var list1 = List.of(collection);
collection.add(2);
var list2 = List.copyOf(collection);
System.out.println(list1);
System.out.println(list2);
var collection = Arrays.asList(1,2,3);
public List<Integer> getCollection() { return new ArrayList<Integer>(); }
public List<? super Integer> getCollection() { return new ArrayList<Integer>(); } public List<? extends Integer> getCollection() { return new ArrayList<Integer>(); }public ArrayList<Integer> getCollection() { return new ArrayList<Integer>(); }

--

--

--

Passionate about Java and quantum mechanics

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

GoFundMe: Help Ukraine Emergency Appeal

Adapting Agile Methodologies in Zomato — My View

Optimizing data warehouse storage

Setting up Microsoft SQL Server on Ubuntu using DigitalOcean

The role of AWS in building a SaaS product

Static Analysis : a quick setup

OpenShift Industry Use Cases

About cumaps.net

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Roman Ivanov

Roman Ivanov

Passionate about Java and quantum mechanics

More from Medium

JAVA Head first: Chapter 1

Intro to Java ☕️ Pt. 1

Java Inter Q

JAVA FUNDAMENTALS