Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 6113

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 6187

Advantages of Inheritance in java.

CybAge, HCL,

11 38494

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 5999

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

Mind Tree,

3 11964

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

Mind Tree,

4 11235

What code optimizations techniques you follow in general practice?

Accenture, TCS, Wipro,

2 7104

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

CSC,

5 9080

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

1 3944

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 4909

Difference between JVM and JRE?

Amdocs,

3 7303

Diff between Comparator and Comparable?

Aditya Birla,

2 9528

what is the difference between object and class

IBM,

10 12397

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 6367

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

5 8258


Post New Core Java Questions

Un-Answered Questions { Core Java }

Difference between this() and super() ?

1187


What is the syntax and characteristics of a lambda expression?

1095


Can abstract class have private constructor?

988


What are some characteristics of interference class?

1057


Why string is immutable with example?

1036


What is the abstract class?

1090


what is anonymous class in java?

1094


Does anyone still use java?

1171


public class Test { public static void main(String[] args) { int countA = 0; int countB = 0; int countC = 0; int countD = 0; int countE = 0; int countF = 0; int countG = 0; int countH = 0; int countI = 0; int countJ = 0; int countK = 0; int countL = 0; int countM = 0; int countN = 0; int countO = 0; int countP = 0; int countQ = 0; int countR = 0; int countS = 0; int countT = 0; int countU = 0; int countV = 0; int countW = 0; int countX = 0; int countY = 0; int countZ = 0; } } Can anybody tell me any alternate solution(like loop or something) to automate this initialization process. Ex:- for(char chr='A';chr<='Z'; chr++) { (int) String "count"+chr = 0; }

2374


What is called module?

1026


What is default constructors?

1081


What is an infinite loop? How infinite loop is declared?

1172


What are the different types of sorting in java?

1026


Why java strings are immutable in nature?

1128


What is java jit compilers?

1061