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

Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

2362

How to make a class immutable?

Bosch, TSYS,

15 31077

What is the difference between Abstract Class and Interface

Amdocs,

8 16007

How to perform Singleton of the java class object on multi JVM?

2 12702

How to send a request to garbage collector?

4 8408

How can you say HashMap is syncronized?

Arete, IBM,

14 21496

which pattern is default in scanner package?

Satyam,

2275

what is d difference between deep cloning and shallow cloning in core java?

Satyam,

3 17698

what is the use of private constructor in core java?

OnMobile, Satyam, Yash Technologies,

3 19769

what is the use of datasource in core java?

Satyam,

3 10244

public class AboutStrings{ public static void main(String args[]){ String s1="hello"; String s2="hel"; String s3="lo"; String s4=s2+s3; //to know the hash codes of s1,s4. System.out.println(s1.hashCode()); System.out.println(s4.hashCode()); // these two s1 and s4 are having same hashcodes. if(s1==s4){ System.out.println("s1 and s4 are same."); }else System.out.println("s1 and s4 are not same."); } } Somebody told me that, == operator compares references of the objects. In the above example even though s1 and s4 are refering to same object(having same hash codes), it is printing s1 and s4 are not same. Can anybody explain in detail why it is behaving like this? Thanks in Advance RavuriVinod

TCS,

4 7760

if two references are having same hash codes,is that means those are refering to same object?

CTS,

5 11266

Difference String and String Buffer

4 7586

What is object

6 9506

How to make class immutable

6 10305


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is sizeof () operator?

1037


What is a line break?

1081


What are 5 boolean operators?

1261


Explain the difference between an object-oriented programming language and object-based programming language?

1028


What are the advantages of autoboxing?

1071


Explain about strings in java?

1133


what is anonymous class in java?

1096


What is Java Annotations?

1185


How many bytes are there?

1063


Do loops java?

1073


can java object be locked down for exclusive use by a given thread? : Java thread

1157


Is intellij better than eclipse?

1154


What are the methods of object class ?

1109


How many bytes is a string in java?

1044


What is the use of jtable?

1176