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
Java Multithreading Interview Questions

Explain Java BlockingQueue with Producer-Consumer thread example

August 18, 2024September 20, 2014 rsingh

Java BlockingQueue interface is used to implement producer consumer design pattern. This design pattern comes to solve common problem, in which producer and consumer threads

Read More
Java Multithreading Interview Questions

What is yield () method in java multithreading?

August 18, 2024August 11, 2014 rsingh

Answer: When a thread calls yield() method in Java, this means, the thread wants to relinquish the control over processor and give it to other

Read More
Core Java Interview Questions

Do we have static constructor in java?

August 18, 2024August 6, 2014 rsingh

Answer: No, we don’t have static constructor in java. Actually, java static constructor concept is not there. When we make a class constructor static, compiler

Read More
Java Collections Interview Questions

If we try to insert duplicate values in a “Set”, what will happen? Do we get any complier error?

August 18, 2024July 14, 2014 rsingh

Just it doesn’t add duplicate values. Boolean add(E e) – Adds the specified element to this set if it is not already present (optional operation). As, add() method returns Boolean and on adding duplicates

Read More
Java Multithreading Interview Questions

When do you synchronize a piece of code?

August 18, 2024July 13, 2014 rsingh

Answer: When a piece of code is accessed by more than one threads at the same time, we need synchronization. Reason is that we may

Read More
Java Multithreading Interview Questions

How many ways we can create a thread in Java? Explain with pseudo code.

August 18, 2024July 12, 2014 rsingh

There are two ways we can create a thread in multithreading in java programs that is by extending thread class and implementing Runnable interface.Here are

Read More
C++ Advanced Interview Questions

What is virtual destructor in C++? Why do we need virtual desturctor?

August 18, 2024January 29, 2023 rsingh

Answer includes what is virtual destructor in C++ with example and use of it or why do we need virtual destructor in C++ object oriented

Read More
C++ Advanced Interview Questions

What is benefits of constructor overloading in c++ -Real Time Example

August 18, 2024January 29, 2023 rsingh

Benefits of constructor overloading in c++ interview question – We need to answer why constructor overloading is required in C++ program? and what are advantages

Read More
C++ Advanced Interview Questions

What is friend class in C++? Show by C++ Code example

August 18, 2024June 10, 2014 rsingh

Answer includes friend class in C++ using a C++ code example and uses. Rather that defining it lets describe friend class by example and understand

Read More
C++ Advanced Interview Questions

C++ self-assignment -If object assigned to itself what happens

August 18, 2024June 10, 2014 rsingh

Answer: Self assignment of object in C++ is OK only if object declaration and initialization has been already done before. Otherwise, we may get compiler

Read More

Posts pagination

Previous 1 … 63 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.