Implementing Runnable vs extending Thread

As we already understood in previous article that there are 2 ways to create threads in Java 1. By Implementing Runnable interface 2. By Extending Thread class. But what is the best way to create thread ? There are few reasons why implementing Runnable interface is more preferable than extending Thread class Yes, implementing Runnable […]

Share this article on

Wrapper class in Java

Let us understand about Wrapper Class We know that there are 8 primitive data types provided in java(like int,float ,boolean etc) Java has provided the dedicated class for each of these primitive types and these classes are called as Wrapper class in Java. They are called wrapper class as they wrap the primitive into an […]

Share this article on
< Previous Next >