Why java uses the concept of the string literal?
No Answer is Posted For this Question
Be the First to Post Answer
How is a structure different from array ?
Why arraylist is not synchronized in java example?
What are encapsulation, inheritance and polymorphism?
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 are format specifiers in java?
How are this() and super() used with constructors in java programming?
What is multiple inheritance? Is it supported by java?
What is synchronization? How it can be achieved?
What is the static keyword?
What are keyboard events?
What’s the difference between constructors and other methods?
What is the difference between a choice and a list?