Follow Our FB Page << CircleMedia.in >> 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; } }

TCS,

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

CSC,

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?

Amdocs,

3 4764

Diff between Comparator and Comparable?

Aditya Birla,

2 7271

what is the difference between object and class

IBM,

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?

172


Explain scope or life time of local variables in java?

175


What is exception propagation?

160


Why is the main method declared static?

156


Why is java architectural neutral?

190






What is a variable and constant?

129


What is the difference between conversation & casting?

172


Give the difference between the println method and sqrt method?

207


What are streams in java 8?

129


Is array synchronized in java?

127


What are different types of constants?

134


What is anagram number?

111


What are scriptlets?

197


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

218


What is prime number in java?

138