You are on page 1of 1

What are assertions?

“Interfaces are able to extend more than one interface, but a class cannot extend more than one class”-
why?
What is the difference between an interface and an abstract class?
Differentiate between array and vector with example?
“Abstract classes can be defined without any abstract methods” – support the statement with proper
reasoning.

What do you mean by static class and static method? Can we make an instance of an abstract class?
Justify your answer with an example?
What are different forms of inheritance? Explain.
How packages differ from interfaces? Explain with a suitable example program to calculate student
marks statement?
Explain various access specifies supported by java with example.
Write a java program to illustrate “Constructor overloading”.
What are various types of exceptions in java? Also discuss on how they are handled?
Explain creating packages and accessing a package with example.
Write a java program to find the area and perimeter of square and circle using interface?
Explain clearly about how java handles cleaning up of unused objects.
Explain about exception handling in java with examples.
Why constructors don’t have any return type? Explain it with proper example.

You might also like