Blog List

  • Home

Callable Interface in java

Callable is an interface which is available in java.util.concurrent package. its is similar to Runnable interface but there is some difference. Runnable interface has the run() method and its return type is void Callable interface has the call() method...

Multithreading

Thread: Thread is a lightweight sub process it’s not require dedicated resource for it. its run inside the process so its shares and utilize resources which is already allocated for process. If we running the more than one thread...

Summary Statistics

Sample program for get the min, max and average from collection of numbers using java 8 Summary Statistics. Java 8 provide various class based on data types for get the statistics those are below IntSummaryStatistics LongSummaryStatistics DoubleSummaryStatistics Result