How to compare two strings in java program?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How many ways can we create the string object?

0 Answers  


There are 100 keys and values in HashMap.how to get the keys and values?

1 Answers   IBS,


Difference between canvas class & graphics class?

1 Answers  


What are java packages?

0 Answers  


What is the difference between static method and instance method in Java?

0 Answers   SwanSoft Technologies,






What is the functionality of the stub?

0 Answers  


Hi, well i am unable to understand that why it is mandatory to have same hashcode, if two objects are same? Thanks in advance.

5 Answers  


Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }

3 Answers  


What are the problems faced by java programmers who don't use layout managers?

0 Answers  


What is thread life cycle in java?

0 Answers  


Which package has light weight components in java programming?

0 Answers  


can we access the super class method using subclass object?

4 Answers  


Categories