Interface and abstract class


Q1. Illustrate the differences between the Interface and Abstract class? Describe how java gets benefited by employing Interface with the help of an illustration.

Q2. Illustrate the properties of a constructor? Why do you require overloaded constructors? Describe the use of overloaded constructors with the help of an illustration.

Q3. Describe the life cycle of an Applet. List all the different attributes of Applet tag which are used in HTML. Describe the main purpose of these attributes.

Q4. Write down a program in JAVA which creates a Child Thread of main by using Runnable interface and uses the given methods:

a) getName()
b) setName()
c) setPriority()

Q5. Write down the uses of exception handling in the JAVA? Write down a program by using Java which handles an exception ‘Entry of negative age of a person’.

Q6. Write down a Java program to copy one file to the other file with the help of byte stream classes.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Interface and abstract class
Reference No:- TGS011268

Expected delivery within 24 Hours