What is main string [] args?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

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?

5 Answers  


Differentiate between static and non-static methods in java.

0 Answers  


Give few difference between constructor and method?

0 Answers  


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?

3 Answers  


How do you sort a string in java?

0 Answers  


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 { }

2 Answers   Mphasis,


If we don’t want some of the fields not to serialize how to do that?

0 Answers  


Why java is considered as platform independent?

0 Answers  


Is there any use of an abstract class which has no methods and no attributes?

1 Answers   Wipro,


What are access specifiers in java ?

0 Answers   Akamai Technologies,


What is “try and catch” in java

2 Answers  


What is the difference between quicksort & mergesort? When should they be used? What is their running time?

0 Answers   Akamai Technologies,


Categories