Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Core Java Interview Questions
Questions Answers Views Company eMail

Why sleep()is in Thread and wait() in Object class? Why can't I have both in one class or vice versa?

1 4721

This is related to threads. I have a class with synchronized method m1(). Can I create different instances of this class and execute the m1() for different threads?

3 4007

Advantages of Inheritance in java.

CybAge, HCL,

11 31216

what is the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }


3 3620

how a marker interface gets its functionality and when we implements a marker interface how it got invoked

Mind Tree,

3 9338

how to handle a singleton service locator. when multiple threads are trying to get the singleton object in same time

Mind Tree,

4 8298

What code optimizations techniques you follow in general practice?

Accenture, TCS, Wipro,

2 5121

System.out.println("somestring"); It will create any object or not


5 5785

________ exception must be either caught or specified in throws class of the method.

1 2579

Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?

2 3038

Difference between JVM and JRE?


3 4764

Diff between Comparator and Comparable?

Aditya Birla,

2 7271

what is the difference between object and class


10 7462

There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.

3 4101

Is it possible to create object with out its default constructor? if possible how? else not possible? justify

5 4929

Post New Core Java Questions

Un-Answered Questions { Core Java }

What is an infinite loop?


Explain scope or life time of local variables in java?


What is exception propagation?


Why is the main method declared static?


Why is java architectural neutral?


What is a variable and constant?


What is the difference between conversation & casting?


Give the difference between the println method and sqrt method?


What are streams in java 8?


Is array synchronized in java?


What are different types of constants?


What is anagram number?


What are scriptlets?


What is the difference between static method and instance method in Java?


What is prime number in java?