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

2360

How to make a class immutable?

Bosch, TSYS,

15 31064

What is the difference between Abstract Class and Interface

Amdocs,

8 16002

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

2 12701

How to send a request to garbage collector?

4 8408

How can you say HashMap is syncronized?

Arete, IBM,

14 21490

which pattern is default in scanner package?

Satyam,

2273

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

Satyam,

3 17695

what is the use of private constructor in core java?

OnMobile, Satyam, Yash Technologies,

3 19765

what is the use of datasource in core java?

Satyam,

3 10243

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 11262

Difference String and String Buffer

4 7583

What is object

6 9506

How to make class immutable

6 10302


Post New Core Java Questions

Un-Answered Questions { Core Java }

What is starvation?

1419


What is an exception? difference between Checked and Unchecked exception in Java

1063


Difference between class#getinstance() and new operator ?

1282


What is sortedmap in java?

1082


What is java english?

1091


How do you create a first line indent?

1049


How can we make sure main() is the last thread to finish in java program?

1260


What is field name?

1081


What is token in java?

1078


How do you ensure that n threads can access n resources without deadlock?

1361


Why is the main method declared static?

1184


how is final different from finally and finalize in java?

1109


What is a void method java?

1008


What do you meant by active and passive objects?

1145


What is return in java?

1033