Interview Questions And Answers
Q: - Can I call a abstract method from a non abstract method ?
Yes, We can call a abstract method from a Non abstract method in a Java abstract class
Submitted By:-Williams Email-ID: - tomwilliams45@rediff.com
Q: - What is a collection ?
Collection is a group of objects. java.util package provides important types of collections. There are two fundamental types of collections they are Collection and Map. Collection types hold a group of objects, Eg. Lists and Sets where as Map types hold group of objects as key,
value pairs Eg. HashMap and Hashtable.
Submitted By:-Amrinder Email-ID: - amrinder_gill1984@rediff.com
Q: - What methods java providing for Thread communications ?
Java provides three methods that threads can use to communicate with each other: wait, notify, and notifyAll. These methods are defined for all Objects (not just Threads). The idea is that a method called by a thread may need to wait for some condition to be satisfied by another thread; in that case, it can call the wait method, which causes its thread to wait until another thread calls notify or notifyAll.
Submitted By:-Amrinder Email-ID: -amrinder_gill1984@rediff.com
| |

