What is the use of a conditional inclusion statement in Java ?


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

Post New Answer

More Core Java Interview Questions

How many bytes are a float?

0 Answers  


what is daemon thread and which method is used to create the daemon thread? : Java thread

0 Answers  


How listener identify that the event came from a particular object?

0 Answers  


Why is whitespace important?

0 Answers  


How do you change an int to a string?

0 Answers  


What is the formula to calculate percentage?

0 Answers  


What classes of exceptions may be thrown by a throw statement?

0 Answers  


What is data type in java?

0 Answers  


What are accessor methods in java?

0 Answers  


What is the difference between a local variable and an instance variable?

0 Answers  


What is the constructor?

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  


Categories