Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Are streams faster than for loops?

Answer Posted / Abhishek Kumar Srivastava

In general, Streams in Java 8 can be faster than traditional for-loops due to their ability to use parallel processing and lazy evaluation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the java api?

986


What if I write static public void instead of public static void?

928


what is reflection api? How are they implemented?

1098


What do you understand by casting in java language? What are the types of casting?

923


What is the locale class?

1020


How does java handle integer overflows and underflows?

1107


What is the resourcebundle class?

1002


Are jvm’s platform independent?

972


What is the first argument of the string array in main method?

1025


Can we extract main method from another class?

1026