Explain the scope of a variable.


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

Post New Answer

More Core Java Interview Questions

Give a brief description of java socket programming?

0 Answers  


How will you compute size of a structure?

0 Answers   Amdocs,


What does exclamation mean in java?

0 Answers  


what is the purpose of the final in the try-catch-final

7 Answers  


What is Hierarchy of exception?

0 Answers   Amdocs,






Explain about map interface in java?

0 Answers  


Can an anonymous class be declared as implementing an interface and extending a class?

2 Answers  


What are different exception types exceptions available in java ?

0 Answers  


Explain the difference between an Interface and an Abstract class?

0 Answers   BirlaSoft,


Where is the singleton class used?

0 Answers   Cap Gemini,


How can we make a class virtual?

0 Answers   Fidelity,


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  


Categories