What is process and thread? A process usually refers to a program in execution whereas a thread is part of process. A thread is the smallest part of process (light weight process)that can run concurrently with other threads. How to create a thread? Extend Thread class NOTE: You will not be able to extend to another class after …
Tag Archives: Java
How to work with Java Collections?
Introduction Collections in Java is a framework that provides architecture to store and manipulate data. 👉 (BONUS) Array-based Coding Interview Question at the end! Hierarchy Iterable Interface This interface is the root interface in Collection framework. It is extended by Collection interface. It contains method: Iterator<E> iterator() which returns iterator over elements in the list. Collection …