Where the CardLayout is used?
Answer / pkr_reddy
card layout is uniq in all other layout managers .
it stores several diff layouts.it is useful to user to
select the optional components that can be dynamically
enabled or disabled.
we can select the layout managers by clicking the
button and we can move from front and bak through index.
| Is This Answer Correct ? | 1 Yes | 3 No |
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
Difference between a class and an object?
What is an enumeration class?
Can static methods be inherited?
What Method and class used for Connection pooling ?
Is math class static in java?
What is string subsequence method?
What is arrays sort in java?
What is a databasemetadata?
In how many ways we can do exception handling in java?
What are static blocks in java ?
Can we use catch statement for checked exceptions?