Author Archives: Thomas Mani P

Prime number

Posted in recursion | Leave a comment

Decimal to Octal

Posted in recursion | Leave a comment

Decimal to Binary

Posted in recursion | Leave a comment

Fibonacci series

Posted in recursion | Leave a comment

Factorial

Posted in recursion | Leave a comment

CONSTRUCTOR – Overloading

Java allows having more than one constructor inside one Class.In Constructor overloading you have multiple constructors with a different signature. The biggest advantage of Constructor overloading is flexibility which allows you to create the object in a different way for … Continue reading

Posted in Basic | Leave a comment

POLYMORPHISM

Polymorphism in Java has two types: Compile time polymorphism (static binding) Method overloading is an example of static polymorphism, Static Polymorphism: is achieved through method overloading. ie. there are several methods present in a class having the same name but … Continue reading

Posted in Basic | Leave a comment

RECURSION – ITERATION

Recursion refers to a situation where a function calls itself again and again until some base condition is not reached. A program is called recursive when an entity calls itself. It is comparatively slower because before each function call the … Continue reading

Posted in Basic | Leave a comment

CHECKED – UNCHECKED EXCEPTIONS

Checked exceptions are checked at compile-time. It means if a method is throwing a checked exception then it should handle the exception using try-catch block or it should declare the exception using throws keyword, otherwise the program will give a … Continue reading

Posted in Basic | Leave a comment

FUNCTION PROTOTYPE – DEFINITION

function prototype – definition Function prototype is the declaration of a function which specifies about the return type,function name as well as the data types of the parameters that are passed to the function. General syntax of function prototype returntype … Continue reading

Posted in Basic | Leave a comment