0 votes
9 views

Explain the System.out::println expression.

in Education by (51.6k points)

1 Answer

0 votes

What are method references in Java8?

Method references help to point to methods by their names. A method reference is described using :: (double colon) symbol. A method reference can be used to point the following types of methods -

Static methods

Instance methods

Constructors using new operator (TreeSet::new)

Explain the System.out::println expression.

System.out::println method is a static method reference to println method of out object of System class.

by (51.6k points)

Related questions

0 votes
1 answer 26 views
0 votes
1 answer 22 views
0 votes
1 answer 88 views
0 votes
1 answer 11 views
0 votes
1 answer 11 views
11 views asked Nov 8, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 13 views
0 votes
1 answer 23 views
0 votes
1 answer 45 views
0 votes
1 answer 26 views
0 votes
1 answer 24 views
0 votes
1 answer 23 views
0 votes
1 answer 1.2k views
0 votes
1 answer 14 views
...