Have a Question?

If you have any question you can ask below or enter what you are looking for!

Tag: Core java

Explain Default exception handling in Java?

Default exception handling in Java ?

Explain Default exception handling in Java? Inside a method, if any exception occurs the method in which it is raised is responsible to create exception object by including the following information. Name of exception Description of exception Location at which exception occurs(Stack trace). After creating exception object method handover that . . . Read more

What is Exception and Runtime stack mechanism?

What is Exception and Runtime stack mechanism? An unexpected unwanted even that disturbs normal flow of the program is called an exception.  It is highly recommended to handle the exceptions and the main objective of exception handling is graceful termination of the program. Exception Handling doesn’t mean repairing an exception. . . . Read more

Difference between IS-A relationship and Has-A relationship.

Difference between IS-A relationship and Has-A relationship.

Difference between IS-A relationship and Has-A relationship. IS-A Relationship It is known as an inheritance The main advantage of IS-A relationship is code reusability. By using extends keyword we can implement IS-A relationship. Whatever method parent has by-default available to the child and hence on the child reference we can call . . . Read more

%d bloggers like this: