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

2307

How to make a class immutable?

Bosch, TSYS,

15 30598

What is the difference between Abstract Class and Interface

Amdocs,

8 15744

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

2 12587

How to send a request to garbage collector?

4 8256

How can you say HashMap is syncronized?

Arete, IBM,

14 20950

which pattern is default in scanner package?

Satyam,

2236

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

Satyam,

3 17556

what is the use of private constructor in core java?

OnMobile, Satyam, Yash Technologies,

3 19620

what is the use of datasource in core java?

Satyam,

3 10091

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 7629

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

CTS,

5 11094

Difference String and String Buffer

4 7428

What is object

6 9233

How to make class immutable

6 10129


Post New Core Java Questions

Un-Answered Questions { Core Java }

What are inbuilt functions in java?

1087


What is a methodologist?

1069


What is local declaration?

970


What is an image buffer?

997


Explain the difference between static and dynamic binding in java?

1067


From the two, which would be easier to write: synchronization code for ten threads or two threads?

1052


What is a cup of java?

1018


What is the difference between the font and fontmetrics classes in java programming?

1154


Is singleton class immutable?

967


What are advantages and disadvantages of OOPs?

1140


Explain exception chaining in java?

1171


When is the finalize() called? What is the purpose of finalization?

1080


How an object is serialized in java?

988


Why does java does not support multiple inheritance? Explain

974


How many types of equations are there?

1018