Difference between a Scrollbar and a ScrollPane

What is the difference between a Scrollbar and a ScrollPane?

ScrollbarScrollPane
It is a component.It is a container.
It does not handles its own events.It handles its own events and performs its own scrolling.
Scrollbar cannot have a ScrollPane.ScrollPane can have a scrollbar.
Difference in using runnable and extends in Thread.
JAVA Runnable and Extents - We can use Extend Thread class only when the class is not extending another class...
JAVA Thread safety - Explain the term thread safety and synchronization.
JAVA Thread safety - The term Thread safety means each method in a multithreaded environment...
Difference between a URL instance and a URL connection instance
URL instance and a URL connection instance - URL instance represents the location of a resource, and a URLConnection instance represents a link for accessing or communicating with the resource at the location...
Post your comment