Follow Our FB Page << >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...

Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

TCS Core Java Interview Questions
Questions Answers Views Company eMail

what is sendredirect?

7 6659

what is difference between Action messages and Action errors?

3 12686

What are the steps to do connection pooling in weblogic?

1 6896

what is business delegate?

2 5050

how to use finalize()Method to resources

4 4782

What is Exception handling in Java How do you handle run time errors please explain with an example

2 5759

Diff between C++ and java?

9 7845

what is jndi?

1 3728

what is java bean?where can we use it?

12 24256

what is features of jdk 1.5?

2 11583

different types of threads?

18 49332

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

4 5284

What is the purpose of premetive data types in java?

2 6343

Howmany number of objects we can store in an ArrayList. Is there any limit?

7 10800

What is the basic functionality of DataOutput interface in java?

2 4589

Post New TCS Core Java Interview Questions

TCS Core Java Interview Questions

Un-Answered Questions

Is sybase free?


How to enter a new row into a table interactively?


what is the difference between torque induced and torque load?compare them with respect to dc motor?


Can CPF share given by govt. added in the Financial gross salary while calculating Total gross salary at the end of Financial year.For eg: My gross salary is Rs.X during a Fin. year & govt share of CPF is Y then Total Fin. Year gross salary is =X+Y,is it correct?


What is the use of addslashes in php?


What are smart contracts in blockchain?


What is meant by derating factor?


How to fix back the valve actuator stem


Which unit gives non-linearity to a neural network?


There are two payroll administrator a &b, a will not see 0008 of b and vice versa


How do I open a dos window?


What is a user exit program in oracle reports?


What is acm bit where it is found?


How do I make my wordpress page visible?


What is jdbc abstraction and dao module?