What does flag mean in java?
No Answer is Posted For this Question
Be the First to Post Answer
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?
What is a ?
How do I type unicode?
Is string a data type in java?
Can inner class have constructor?
What data type is a string?
What is the difference between C++ and Java and your preferences?
What are the two ways to create a thread?
what is singleton class in java?
What are assembly attributes?
How many decimal places is a double?
Mention some features of java?