Java8 | 59 | Find First vs Find Any | Tamil

Ойын-сауық

The findAny() method is a terminal operation, which means that it performs its action and returns a result immediately. It is also a non-deterministic operation, which means that the result is not guaranteed. In the above example, the result will be different each time the code is run.
The findAny() method can be used in a variety of situations where you need to find a random element from a collection. For example, you could use it to choose a random lottery winner or a random product to promote.
The findFirst() method in Java 8 is used to find the first element in a stream. It is a terminal operation, which means that it cannot be chained with any other intermediate or terminal operations. The findFirst() method takes a predicate as its argument, which is a functional interface that takes an element as input and returns a boolean value. The findFirst() method will return the first element in the stream for which the predicate returns true.

Пікірлер: 3

  • @antroseanto8092
    @antroseanto809210 ай бұрын

    I need other chapters too.... Because you are explain the concepts easily understand... Please help bro

  • @oneofyou20
    @oneofyou2010 ай бұрын

    Neenga america laya irukinga.....Anna testing ku job fresher ku illanu soldranga enna na pandrathu java rumba kozhapama irukku padichalu maranthu poguthu ippo na course poitu apdiyea unga video vayum pathuttu irukka konjo java epdi purinji padikurathu apro testing la selenium testng hybrid frame work thaa sollikudukuranga fresher ku ithu pothuma nu sollunagana......

  • @antroseanto8092
    @antroseanto809210 ай бұрын

    Bro why you stop ISTQB videos with only one chapter

Келесі