What is Exception handling in Java How do you handle run time errors please explain with an example
2 7663public 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 7744Post New TCS Core Java Interview Questions
differentiate between bind() vs live() vs delegate() methods in jquery.
What is a recursive join sql?
Define a task tracker?
How is saturn like earth?
The component used for sorting data is called as?
I am using an Oracle 8i Database my data contains Clob data. I am using toad version 7.6 i am able to get the data in toad but unable to extract the data in excel.when trying to extract the data into the excel the toad error says out of memory. Can any body please help me to extract the data through the same toad version. Thanks in advance
How to print all the arguments provided to the script?
How do you change the size of a table in word?
How do I enable activex in safari?
Explain how many controllers can be used in a visual force page?
How will you bind the user session with a specific instance in elb (elastic load balancer)?
How do I partition a table in sql server?
What is the relationship between the life cycle of an asynctask and an activity? What problems can this result in? How can these problems be avoided?
What happens when cutaneous exposure occurs?
How you can get the list of largest tables in a database?