What is main string [] args?
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?
Differentiate between static and non-static methods in java.
Give few difference between constructor and method?
what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?
How do you sort a string in java?
I Have a class abstract with one abstract method, so that method should override in the subclass, but i dont want to override, if i am not override what will happen? If compilation will occur then i dont want to give compilation error, then what we need to do??? See the sample program. public abstract class AbstractExample { public abstract void sampleMethod(); } public class AbstractExampleImple extends AbstractExample { }
If we don’t want some of the fields not to serialize how to do that?
Why java is considered as platform independent?
Is there any use of an abstract class which has no methods and no attributes?
What are access specifiers in java ?
0 Answers Akamai Technologies,
What is “try and catch” in java
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
0 Answers Akamai Technologies,