Fibonacci Series is a series of numbers in which each number is the sum of the two preceding numbers. e.g. 1,1,2,3,5,8,13,21,34,…….. 0,1,1,2,3,5,8,13,21,34,…….. is also a fibonacci series. Fibonacci Series satisfies… Read more »

In Linear Search Algorithm, search for an element happens in linear way i.e. one by one from beginning in a sequential manner. This search algorithm is particularly useful when the… Read more »

Is overriding of static method possible? Let us understand few concepts related to static methods. Method Hiding: When the same static method is there in parent as well as child… Read more »

Factorial of a Number N is given as multiplication of a number from 1 to N. Factorial of N = 1*2*3*………*N So, given a number N to find factorial of… Read more »

String is neither a subclass nor superclass of StringBuilder or StringBuffer class. So, there is no relationship between String , StringBuffer and StringBuilder classes. String class is Immutable (i.e. once… Read more »

What will be output of the following program? package com.masterjavatutorial; public class Test { public static void main(String[] args) { String str = “HelloWorld”; String str1 = str.toUpperCase().toLowerCase(); String str3… Read more »