Yes, we can call run() method of a Thread class but then it will behave like a normal method. To actually execute it in a Thread, we need to start it using start() method of Thread class.
Read More
- Java – Files and Streams
- Prototype Design Pattern
- Mediator Design Pattern
- Microservices – Hystrix
- Write a Java Program to find middle element in LinkedList.
- Composition
- Why static methods cannot access non-static variables or methods?
- Creational Design Patterns
- What is EC2 service in AWS?
- Behavioural Design Patterns
- Keep It Simple and Stupid (KISS) Principle
- Write a Java program to reverse an array
- What is Marker Interface? Give few examples of Marker Interface.
- Microservices – Client Side Load Balancing
- Template Method Design Pattern
- Where do you find the class files when you compile a Maven project?
- Dependency Inversion Principle (DIP)
- Write JDBC steps to connect to MySQL database in Java
- JavaScript Arrow Function
- Stream API