How do you include a string in java?


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

Post New Answer

More Core Java Interview Questions

Can we create our own wrapper class in java?

0 Answers  


What is a numeric string?

0 Answers  


Which keyword specify that a variable is effectively final ?

0 Answers  


Explain restrictions for using anonymous inner classes?

0 Answers  


What is the return type of the main method?

0 Answers  






If two threads call a static method at the same point of time, what will happen?

3 Answers   KPIT,


Can we declare the static variables and methods in an abstract class?

0 Answers  


What is a void method java?

0 Answers  


If I will write String s=new String("XYZ"); String s1=new String("XYZ"); if(s.equals(s1)){ sop("True"); } else{ sop("False"); } This program will give me "True". But When I am creating my own class suppose class Employee{ public Employee(String name); } Employee e= new Employee("XYZ"); Employee e1 = neew Employee("XYZ"); if(e.equals(e1)){ sop("True"); } else{ sop("False"); } Then it will give the output as "False". Can I know what is happening internally?

5 Answers  


Does .length start 0 java?

0 Answers  


Can a class be subclass of itself?

4 Answers  


How to change the priority of thread or how to set the priority of thread?

0 Answers  


Categories