FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :

Java Programming Questions

Follow Us
9. What are abstract methods?
  • Abstract class can contain abstract methods.
  • Abstract methods do not have implementation.
  • Abstract methods should be implemented in the subclasses which inherit them.
  • So if an abstract class has an abstract methods class inheriting the abstract class should implement the method or else java compiler will through an error.
  • In this way, an abstract class defines a complete programming interface thereby providing its subclasses with the method declarations for all of the methods necessary to implement that programming interface.
  • Abstract methods are defined using "abstract" keyword. Below is a sample code snippet.
Abstract class myAbstractGraphics
Abstract void draw ();
Your Name Your Email-ID
Your Answer
10. Can constructors be parameterized?
  Yes, we can have parameterized constructor which can also be termed as constructor overloading.
Your Name Your Email-ID
Your Answer
11. What are JAVAdoc doclets?
  Doclets helps us to specify the content and format for Javadoc tool. By default Javadoc uses the standard doclet provided by sun. But you can supply your own customized output for Javadoc.
Your Name Your Email-ID
Your Answer
12. Define exceptions?
  An exception is an abnormal condition that arises in a code sequence at run time.
Your Name Your Email-ID
Your Answer