Skip to content

Interview Sansar

Software jobs interview preparation source

  • Home
  • Interview Questions
    • C Interview Questions
    • C++ Advanced Interview Questions
    • C++ Basic Interview Questions
    • Core Java Interview Questions
    • Java Collections Interview Questions
    • Java Multithreading Interview Questions
    • C# Basic Interview Questions
    • C# Advanced Interview Questions
    • C# Multi-threading Interview Questions
  • MCQs
    • MCQ-C++
    • MCQ-Java
    • MCQ-SQL
    • MCQs Algorithms and Data Structure
  • Programming Examples
    • C Programming Examples
    • C++ Programming Examples
    • C# Programming Examples
    • SQL Examples
    • Oracle PL SQL Examples
    • Time Complexity
  • Blog
    • C++ interview questions
    • C# interview questions
    • Java Interview Questions
    • Short Interview Questions
    • Behavioural / HR Interview
  • You-Tube
  • About
    • Why Visit
    • Sitemap
    • Contact Us
    • e-author
C++ Advanced Interview Questions

Implement an objects counter mechanism for a class in C++

August 18, 2024June 10, 2014 rsingh

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:

Read More
Java Multithreading Interview Questions

Callable Vs Runnable interface in Java multithreading?

August 18, 2024June 4, 2014 rsingh

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

Read More
Java Multithreading Interview Questions

Can we override start method of thread class in java?

August 18, 2024January 29, 2023 rsingh

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

Read More
Java Multithreading Interview Questions

what is minimum thread priority in java thread programming?

August 18, 2024June 2, 2014 rsingh

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

Read More
Java Multithreading Interview Questions

What is difference between pre-emptive scheduling and non-pre-emptive scheduling?

August 18, 2024June 2, 2014 rsingh

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

Read More
Java Multithreading Interview Questions

Does each thread have its own copy of JVM instance?

August 18, 2024June 1, 2014 rsingh

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

Read More
Java Multithreading Interview Questions

In a Producer & Consumer thread problem, producer thread has acquired the lock and multiple consumer threads are in wait pool, which consumer thread gets notified first, once producer thread calls notify?

August 18, 2024June 1, 2014 rsingh

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,

Read More
Java Multithreading Interview Questions

What is daemon thread? When would you use daemon thread?

August 18, 2024June 1, 2014 rsingh

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

Read More
C++ Advanced Interview Questions

Why virtual constructor in C++ is not possible? – Reason

August 17, 2024August 18, 2024 rsingh

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

Read More
Design Patterns

Why to Use Design Patterns – BEST REASONS

August 15, 2024August 18, 2024 rsingh

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

Read More

Posts pagination

Previous 1 … 64 65 66 Next

My Unique Books for YOU

All Rights Reserved 2023: Interview Sansar.
Proudly powered by WordPress | Theme: Fairy Blog by Candid Themes.