How do you declare an array in java?
No Answer is Posted For this Question
Be the First to Post Answer
What is stream api in java8?
Iterator in the HashMap is fail-safe means what?
How are java objects passed to a method and what are native methods?
Why do we need data serialization?
What are methods of a class?
What is unicode with example?
write a code, we have two thread, one is printing even no and other print the odd no.
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 java string pool?
How many types of equations are there?
what is the difference between the "protected and default" modifiers?
What are the differences between getting and load method?