Interview Questions

Difference between Throw and Throws in Java

In this tutorial you will learn about difference between throw and throws keywords in java with example. When we run a java program which contains errors, programmers should handle errors by exception handling (using try, catch and finally blocks) or avoid (throw) it. Otherwise JVM will give error which causes the termination of the running …

Difference between Throw and Throws in Java Read More »

Why Java Doesn’t Support Operator Overloading?

Unlike C++, Java does not support operator overloading. To overload the standard arithmetic operators e.g. +, -, * and / etc, Java doesn’t provide freedom to programmers. Java does not support operator overloading because by choice of its developers where they wanted to make it a simple language. Overloading of operator allows you to do …

Why Java Doesn’t Support Operator Overloading? Read More »

What is Object Oriented Paradigm in Java?

The term Programming paradigm means the methodology for writing program codes. In general, two paradigms govern how you can construct a program. These two ways are: a process-oriented model an object-oriented model Many programming languages support both the paradigms like python. Python allows the users to code using both process-oriented and object-oriented methodologies. However, Java …

What is Object Oriented Paradigm in Java? Read More »