Can we define package statement after import statement in java?


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  


Is an integer an object?

0 Answers  


what is the difference b/w design pattern and architecture

4 Answers   Covansys,


What is the difference between conversation & casting?

0 Answers  


Can we declare array without size in java?

0 Answers  






Explain importance of finally block in java?

0 Answers  


where can we get jAVA project orientation traing in HYDERABD

0 Answers  


What is a variable in java?

0 Answers  


What does percent mean in java?

0 Answers  


When do you call copy constructor?

0 Answers   Tavant Technologies, Virtusa,


What is the difference between choice and list?

0 Answers  


What is a protected void?

0 Answers  


Categories