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..

2255

How to make a class immutable?

Bosch, TSYS,

15 30160

What is the difference between Abstract Class and Interface

Amdocs,

8 15535

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

2 12511

How to send a request to garbage collector?

4 8113

How can you say HashMap is syncronized?

Arete, IBM,

14 20428

which pattern is default in scanner package?

Satyam,

2203

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

Satyam,

3 17427

what is the use of private constructor in core java?

OnMobile, Satyam, Yash Technologies,

3 19464

what is the use of datasource in core java?

Satyam,

3 9949

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 7511

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

CTS,

5 10924

Difference String and String Buffer

4 7285

What is object

6 9001

How to make class immutable

6 9953


Post New Core Java Questions

Un-Answered Questions { Core Java }

How to split arraylist elements in java?

1117


If a class is declared without any access modifiers, where can the class be accessed?

1024


What are the concepts of 'OOPS'?

1035


Explain listiterator and methods in listiterator?

970


How can you set an applet’s height and width as a percentage?

891


What are pass by reference and pass by value?

950


What is main difference between variable and constant?

986


Can singleton class be inherited in java?

954


What is a java developer salary?

934


What is the difference between multitasking and multithreading in Java

1153


What is the difference between logical data independence and physical data independence?

994


What is lambda expression in java?

985


What is contract between hashcode and equal method?

993


Why for each loop is used?

973


Can constructor be inherited?

1000