What is a function easy definition?
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?
The following program is Overloading or Overriding? public class PolymorphismEx { public int sampleMethod(int a) { return a; } public String sampleMethod(int a) { return "Is it Overloading or Overriding???"; } }
4 Answers Ness Technologies, TCS,
Matrix multiplication only using OOP concepts .
what is nested class in java?
Is empty list java?
i need to know the website that i can compile and run a java code in online.(while system doesn't contain any jdk and jre)
Can we extend a class with private constructor?
How to display names of all components in a Container?
How to initialize an Applet ?
Why declare Main() inside the class in java ?
How to create a base64 decoder in java8?
What if I write static public void instead of public static void in java?