Interview question: Can you implement an object counter program in C++ for a class that count the number of objects created for that class. Answer:
Callable Vs Runnable interface in Java Multithreading. A Callable can return a result but a Runnable interface cannot. A Callable can throw checked exception but
Answer: Yes, we can override start() method of thread in Java, the same way we override any other methods. for example, In below, custom thread
The minimum thread priority in java is 1 and maximum or highest thread priority is 10. We will see a program example to set and
Answer: Pre-emptive scheduling: In this scheduling the highest priority thread runs when it has a chance to do so. This means that an executing lower-priority
Answer: No, by definitions threads in a Java application share the same memory space, therefore, they are executing within the same JVM. This way you
Answer: The thread that it notifies depends on JVM implementation. We can’t really say which thread actually gets notified. It could be the first thread,
Answer: A daemon thread in Java is a thread that runs in the background within same process. Daemon threads are like Service providers for other
Answer includes reason why virtual constructor in C++ is not possible. By the way there is no concept of C++ virtual constructor. Note that virtual
Hi, this post will describe why to use design patterns. In fact, what is the best reason to use a design pattern in software application