## Write a Program to find duplicate number between 1 to N Numbers [Java interview]

Write a Program to find duplicate number between 1 to N Numbers This article will help you to understand “Java Program to find duplicate number.” Here we have an array from 1 to N with one duplicate number. e.g we have array from 1 to 10 and 2 is repeated once in this array. Then […]

## Write a Program to find K-complementary pairs in a given array of integers [Java interview]

Write a Program to find K-complementary pairs in a given array of integers This article will help you to understand “Java Program to find k-Complementary Pairs.” If Arr is Given Array, then pair (i, j) is K-complementary if K = Arr[i] + Arr[j];  Java Program to find k-Complementary Pairs Output K-Complementary Pair :- (2 , […]

## Check if Given number is Armstrong Number or not in Java [Java interview]

Check if Given number is Armstrong Number or not in Java This article will help you to understand “Java Program Of Armstrong Number.” Armstrong numbers (also known as narcissistic number) are the sum of their own digits to the power of the number of digits. e.g. for 371. Number of digits = 3, So 33 + […]

## Check whether given String is Palindrome or not in Java [Java interview]

Check whether given String is Palindrome or not in Java This article will help you to understand Java Program to Check Palindrome. Palindrome is a String or numeric value which remains same after reversing it. e.g. 12321, 345543, KANAK, MADAM etc. We can check if given string is palindrome or not by reverse it and […]

## Program to print Factorial in java [Java interview]

Program to print Factorial in java. This article will help you to understand “Java Program to Print Factorial.” Factorials are just products, indicated by an exclamation mark. For instance, “five factorial” is written as “5!” and means 5*4*3*2*1 = 120. In general, n! (“enn factorial”) means the product of all the whole numbers from 1 […]

## Print Prime numbers up to given number[Java interview]

Print Prime numbers up to given number. This article will help you to understand “Java Program Of Prime Numbers.” A prime number (or a prime) is a natural number greater than 1 that has no positive divisors other than 1 and itself. A natural number greater than 1 that is not a prime number is […]

## Write a Program to Print Fibonacci Series up to Given Number[Java interview]

Print Fibonacci Series up to Given Number. This article will help you to understand “Fibonacci Series in java.” In the Fibonacci sequence of numbers, each number is the sum of the previous two numbers. Fibonacci began the sequence with 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, … Program to print Fibonacci Series […]

## Write a program to print distinct elements of an array by avoiding duplicate numbers [Java interview]

Write a program to print distinct elements of an array by avoiding duplicate numbers This article will help you to understand “Java program to print distinct elements of an array”. Java program to print distinct elements of an array to get distinct elements from an array, we will store all elements of the array in […]

## Difference between GET and POST

Difference between GET and POST 1. Overview A web browser communicates with the server typically using one of the two HTTP (Hypertext Transfer Protocol) methods — GET and POST. 2. Definition of GET and POST GET requests a representation of the specified resource. POST submits data to be processed (e.g., from an HTML form) to the identified […]

## Difference between JSP and Servlets – Java

Difference between JSP and Servlets – Java Definition JSP is a webpage scripting language that can generate dynamic content. Servlets are Java programs that are already compiled which also creates dynamic web content. Speed JSP run slower compared to Servlet as it takes compilation time to convert into Java Servlets. Servlets run faster compared to JSP. Easy to Code […]