Core Java Interview Questions
Questions Answers Views Company eMail

public class Test { public static void main(String ar[]) { Integer a = 10; Integer b =10; Integer c = 145; Integer d = 145; System.out.println(a==b); System.out.println(c==d); } }

iGate,

7 10853

How to prevent to create multiple objects of a java class?

ASD Lab, TCS,

3 7733

What is OOPS Concept?

Cap Gemini,

1 4177

What is access modifiers?

Cap Gemini,

1 3481

Explain JSP life cycle

Cap Gemini,

1 3176

How do you implement polymorphism in our day to day life?

Cap Gemini,

2756

What is design pattern and there types?

Cap Gemini,

2 5421

What is aggregation?

Cap Gemini,

1 3187

solve this is my problem byte a=40,byte b=50 both add value is 90 this is with in range of byte... byte range is -128to 127.... why this pgm gives error like type mismatch.... package javapgms; public class byte1 { public static void main(String args[]) { byte a=40,b=50; byte c=a+b; System.out.println(c); } } note : dont use int k... a,b,c are in byte range... mind it..

2 5305

Why Static variable required in java?For ex,class A { static int a; int b; } Why static is required?

Ericsson,

5 7140

Why method overloading and method overriding required in java?

Ericsson, Wipro,

1 4239

In collection sorting comparable and comparator interface will be used..but why this two interfaces required..two will work same purpose so why there are two interfaces instead of one?when to use comparator and when to use comparable?

Ericsson,

1 4158

What is OOPs & Why?

3 3997

String is mutable or immutable?

3 5689

INTERVIEW QUESTION FOR ANDROID

1623


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is considered an anti pattern?

515


What is difference between == and === in js?

535


What are loops in java? What are three types of loops?

538


What is string args [] in java?

533


What is main in java?

502






Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

546


How hashmap increases its size in java?

476


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1011


What is the main purpose of java?

504


Explain the use of sublass in a java program?

589


do I need to use synchronized on setvalue(int)? : Java thread

544


What is the epoch date?

562


What is the use of :: in java?

559


What is java and its types?

547


How do you calculate square roots?

566