Under what circumstances an object reference be cast to an
interface reference?

Answer Posted / debapriya maity

Exactly whenever ur entity passed the IS-A Test ,

A is B :)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static class in java?

548


How do you add an element to a hashset in java?

484


What is prime number in java?

530


Is a case study a method or methodology?

456


Can we restart a thread already started in java?

576






How can we run a java program without making any object?

535


Can we extend singleton class in java?

538


Explain the available thread states in a high-level?

522


What are the main differences between notify and notifyAll in Java?

570


Why there is no call by reference in java?

492


What are the different access modifiers available in java?

555


What is a key in java?

491


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

1839


How does class forname work in java?

474


How to stop a thread in java? Explain about sleep () method in a thread?

574