Blog List

  • Home

Callable Vs Runnable

In this blog I explain you difference between callable and runnable interface with sample code. Runnable Callable Has run() method Has call() method return type is void return type is Future can run using Thread class Can’t to run...

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...


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