What is Exception handling in Java How do you handle run time errors please explain with an example
2 6184public 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 5886Post New TCS Core Java Interview Questions
Explain the technique of gene conversion.
What are the different types of erp?
Define an item?
What is meant by the term ‘theming’ in jquery mobile? : jQuery Mobile
How do you compare jsf with spring framework?
What are the types of variables in c?
Which personal actions have you performed on an employee?
How can you merge two tables in oracle?
Why a.i is needed?
Suppose I am trying to sign in to my blackberry internet service account, but I am getting this error message: “the user id and password provided are invalid. Please re-enter your user id and password and try again.” What should I do?
which backup strategy you are following at ur company
What is pthread in linux?
State faraday`s law of induction.
What is the difference between autotext and quick parts?
Explain the difference between web service provider/publisher and web service requestor/consumer.