0 votes
10 views

What is Optional in Java8 in Java8?

in Education by (49.4k points)

1 Answer

0 votes

What is Optional in Java8?

Optional is a container object which is used to contain not-null objects. Optional object is used to represent null with absent value. This class has various utility methods to facilitate code to handle values as 'available' or 'not available' instead of checking null values. It is introduced in Java 8 and is similar to what Optional is in Guava.

by (49.4k points)

Related questions

0 votes
1 answer 10 views
10 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 12 views
12 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 10 views
10 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 11 views
11 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 9 views
9 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 13 views
13 views asked Nov 8, 2020 in Education by Editorial Staff (49.4k points)
0 votes
1 answer 20 views
0 votes
1 answer 15 views
0 votes
1 answer 19 views
0 votes
1 answer 14 views
0 votes
1 answer 14 views
0 votes
1 answer 13 views
0 votes
1 answer 12 views
0 votes
1 answer 9 views
0 votes
1 answer 12 views
0 votes
1 answer 15 views
0 votes
1 answer 14 views
...