Core Java Interview Questions
Questions Answers Views Company eMail

is there a separate stack for each thread in java? : Java thread

512

what is the difference between thread and runnable types? : Java thread

529

why not override thread to make a runnable? : Java thread

532

can java object be locked down for exclusive use by a given thread? Or what happens when a thread cannot acquire a lock on an object? : Java thread

512

Explain different ways of creating a thread. Which one would you prefer and why?

553

What are the differences between wait() and sleep()?

515

What is the purpose of garbage collection in java? When is it used?

516

What are the principle concepts of oops?

515

How does hashmap work in java ?

518

What are the differences between string, stringbuffer and stringbuilder?

499

What is an immutable object? How do you create one in java?

579

How do you create immutable object in java?

519

What are the uses of synchronized keyword?

538

In java, what is the difference between method overloading and method overriding?

559

What is the purpose of garbage collection in java?

629


Post New Core Java Questions

Un-Answered Questions { Core Java }

Write a program to print all permutations of string?

660


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

554


What is a method type?

507


What is the super void?

440


What is the memory leak in java?

507






why an outer class cannot be declared as private?

3581


How do you remove spaces in java?

509


What is bifunction in java?

652


How do you add an element to a set in java?

476


List the three steps for creating an object for a class?

496


Difference between static and dynamic class loading.

561


Why can we not override static method?

565


What is treeset and treemap in java?

549


How to display all the prime numbers between 1 and 100

479


What is prefix of a string?

538