What is the use of conditional statement?
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 are the types of literals?
What is local variable and instance variable?
What are the two ways you can synchronize a block of code?
can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?
Can private class be extended java?
how can i cal servlet from jsp page?how can i pass variablesfrom the jsp that servlet can access?
Which object oriented concept is achieved by using overloading and overriding?
Is singleton class immutable?
What are the two parts of a conditional statement?
Can I declare a class as private?
How do you achieve polymorphism in java?