Can we assign null to double 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?
Write a java program to check if a number is prime or not?
What is data member in java?
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access?
What is a native method in java programming?
Is it necessary for the port addresses to be unique? Explain with reason.
What is parsing in grammar?
What is the declaration statement?
What do the thread?class methods run() and start() do?
What happens when a thread cannot acquire a lock on an object in java programming?
What is difference between c++ and java ?
What does .equals do in java?