Java Programs for Interviews (Full Course)
150 videos • 352,231 views • by QAFox
1
Java Program - What is the output for System.out.println(-6+4*2); ?
QAFox
Download
2
Java Program - What is the output for System.out.println((2+3)*4) ?
QAFox
Download
3
Java Program - What is the output for System.out.println(9+6-3*4/2%5); ?
QAFox
Download
4
Java Program for intaking two numbers using Scanner and printing their sum
QAFox
Download
5
Java program to check whether the given input number is even or odd
QAFox
Download
6
Java program which prints the multiplication table of the given input number
QAFox
Download
7
Java program to check whether the given year is a Leap Year
QAFox
Download
8
Java program - What is the output for System.out.println(7+(3*5)*(4/2)+(5%3)-1);
QAFox
Download
9
Java program to check whether the given character is a Vowel
QAFox
Download
10
Java program to print the area of a circle
QAFox
Download
11
Java program which intakes two numbers and finds the quotient and reminder
QAFox
Download
12
Java Program to find the perimeter of the circle
QAFox
Download
13
Java program to find the power of a number
QAFox
Download
14
Java program to find the sum of first 100 numbers
QAFox
Download
15
Java program which intakes 6 numbers as input and prints their average
QAFox
Download
16
Java program to find the sum of all even numbers from 1 to 10
QAFox
Download
17
Java program which intakes width and height of a Rectangle and there by print its area
QAFox
Download
18
Java program to Swap two numbers
QAFox
Download
19
Java program to intake width and height of a Rectangle and find its perimeter
QAFox
Download
20
Java program to find the sum of all the digits in the inputted number
QAFox
Download
21
Java program to convert a String to integer
QAFox
Download
22
Java program to convert an integer to String
QAFox
Download
23
Java program which intakes String and prints the duplicate characters along with number of times
QAFox
Download
24
Java program to print number of letters, digits, spaces and other things in the inputted statement
QAFox
Download
25
Java program to print the Fibonacci series till the inputted number
QAFox
Download
26
Java program to reverse a String
QAFox
Download
27
Java program to check whether the given String text is a Palindrome
QAFox
Download
28
Java Program to check whether the given number is a palindrome
QAFox
Download
29
Java Program to find the Square of the given number
QAFox
Download
30
Java program to find the Cube of the given number
QAFox
Download
31
Java program to find whether the given number is an Armstrong number
QAFox
Download
32
Java program to find the factorial of the given number
QAFox
Download
33
Java program to remove the duplicates from the Array with the help of HashSet
QAFox
Download
34
Java program to delete duplicates from Sorted Array using index
QAFox
Download
35
Java program to find the duplicate elements in the array using index
QAFox
Download
36
Java program to find the duplicate element in the array using HashSet
QAFox
Download
37
Java program to count the number of digits in the given number
QAFox
Download
38
Java program to count the digits in the given number
QAFox
Download
39
Java program to count the number of even and odd digits in the given number
QAFox
Download
40
Java program to find the largest of given three numbers
QAFox
Download
41
Java program to find the sum of all the elements in the Array
QAFox
Download
42
Java program to separately print the even and odd number in the given array
QAFox
Download
43
Java program to reverse the given number
QAFox
Download
44
Java program to generate a random number within the given range
QAFox
Download
45
Java program to compare two arrays
QAFox
Download
46
Java program logic to compare two arrays without using inbuilt methods
QAFox
Download
47
Java program to find the missing element in the array
QAFox
Download
48
Java program to find the maximum and minimum in the given Array
QAFox
Download
49
Java program to search for the given element in the array
QAFox
Download
50
Java program for printing the Array
QAFox
Download
51
Java program for sorting the elements in the Array using build-in functions
QAFox
Download
52
Java program to remove special characters, spaces and other junk from the given String text
QAFox
Download
53
Java program to remove white spaces in the given string text
QAFox
Download
54
Java program to find the number of occurances of a character in the given String text
QAFox
Download
55
Java program to reverse each and every word in the given String text
QAFox
Download
56
Java program to print the Version of Java installed in your machine
QAFox
Download
57
Java program to compare two given numbers
QAFox
Download
58
Java program to find the ascii value of the given character
QAFox
Download
59
Java program to print the text in the specified format
QAFox
Download
60
Java program to print the current system date and time
QAFox
Download
61
Java program to print the Date and Time in a different format
QAFox
Download
62
Java program to print the odd numbers from 1 to 10
QAFox
Download
63
Java program which intakes a number and prints whether the given number is even or odd
QAFox
Download
64
Java program to display the numbers from 1 to 25 which are divisible by both 2 and 3
QAFox
Download
65
Java program which intakes number of seconds and converts into hours, minutes and seconds
QAFox
Download
66
Java program to find the factors of the number and the count number of factors
QAFox
Download
67
Java program to capitalize the first letter of each word in the given statement
QAFox
Download
68
Java program to convert the given String text to lower case
QAFox
Download
69
Java program to print the pyramid pattern
QAFox
Download
70
Java program to print the number triangle pyramid
QAFox
Download
71
Java program to print the number pyramid
QAFox
Download
72
Java program to find the greatest common divisor of given numbers
QAFox
Download
73
Java program to find the square root of the given number
QAFox
Download
74
Java program to reverse an Array using Java Collections
QAFox
Download
75
Java program to receive input from the User and saving into Array
QAFox
Download
76
Java program to reverse the elements in the array
QAFox
Download
77
Java program to reverse the position of words in the String using Collections
QAFox
Download
78
Java program to find the penultimate word of a sentance
QAFox
Download
79
Java program that calculates the reminder of two numbers without using modulus operator
QAFox
Download
80
Java program to insert a word in the middle of the given text
QAFox
Download
81
Java program to print the last three letters of the given text
QAFox
Download
82
Java program to print the first half of the given string text
QAFox
Download
83
Java program to find the size or length of the given String
QAFox
Download
84
Java program to find the number of elements in the given array
QAFox
Download
85
Java program to find the number of elements in the ArrayList
QAFox
Download
86
Java program to right rotate an Array by 1 element
QAFox
Download
87
Java program to right rotate an Array by 3 elements
QAFox
Download
88
Java program to left rotate an Array by 1 element
QAFox
Download
89
Java program to left rotate an Array by 3 elements
QAFox
Download
90
Java program to swap first and last elements of the Array
QAFox
Download
91
Java program to multiply the corresponding elements in the given two arrays
QAFox
Download
92
Java program to merge two different sorted arrays into a third sorted array
QAFox
Download
93
Java program to perform calculator operation
QAFox
Download
94
Java program to find the IP Address of the given website
QAFox
Download
95
Java program to check whether the given number is a prime number
QAFox
Download
96
Java program to print all the prime numbers between 1 and 100
QAFox
Download
97
Java program to count number of words in a String
QAFox
Download
98
Java program to find first occurrence of given element in given array without using any algorithm
QAFox
Download
99
Java program to swap two numbers without using third variable
QAFox
Download
100
Java program to remove the duplicate charaters in the given String
QAFox
Download
101
Java Program to left rotate a String by 1 position
QAFox
Download
102
Java program to left rotate a String by 3 positions
QAFox
Download
103
Java Program to right rotate a String by 1 position
QAFox
Download
104
Java Program to right rotate a String by 3 positions
QAFox
Download
105
Java program to print right triangle star pattern
QAFox
Download
106
Java program to print left triangle star pattern
QAFox
Download
107
Java program to print the reversed pyramid star pattern
QAFox
Download
108
Java program to print diamond shape star pattern
QAFox
Download
109
Java program to print the downward triangle star pattern
QAFox
Download
110
Java program to print mirrored right triangle star pattern
QAFox
Download
111
Java program to print the mirrored right down triangle star pattern
QAFox
Download
112
Java program to print right pascal triangle star pattern
QAFox
Download
113
Java program to print left pascal triangle star pattern
QAFox
Download
114
Java program to print Sandglass star pattern
QAFox
Download
115
Java program to print pyramid border star pattern
QAFox
Download
116
Java program to find the first non-repeated character in the given String
QAFox
Download
117
Java program to check whether the given Strings are anagrams using Collections
QAFox
Download
118
Java program to check whether the String is Anagram of another String by using sorting technique
QAFox
Download
119
Java program to check whether the given number is a power of 4
QAFox
Download
120
Java program to print the Down Triangle having Border Pattern
QAFox
Download
121
Java program to print diamond border star pattern
QAFox
Download
122
Java program to print the number pattern
QAFox
Download
123
Java program to print a Floyd's Triangle
QAFox
Download
124
Java program to print Pascal Triangle
QAFox
Download
125
Java program to print Number Pattern 1 22 333 4444 5555
QAFox
Download
126
Java Program to print Number Pattern 55555 4444 333 22 1
QAFox
Download
127
Java Program to print Number Pattern 5 54 543 5432 54321
QAFox
Download
128
Java Program to print Number Pattern 1 21 321 4321 54321
QAFox
Download
129
Java program to print Number Pattern 1 10 101 1010 10101
QAFox
Download
130
Java Program to print Number Pattern 10101 01010
QAFox
Download
131
Java program to print the Sandglass Number Pattern
QAFox
Download
132
Java Program to print Diamond Number Pattern
QAFox
Download
133
Java program to print the Right Triangle Alphabet Pattern
QAFox
Download
134
Java Program to print Alphabet Pattern A BB CCC DDDD EEEEE
QAFox
Download
135
Java program to print Triangle Alphabet Pattern
QAFox
Download
136
Java Program to print K Shaped Alphabet Pattern
QAFox
Download
137
Java Program to print Diamond Border Alphabet Pattern
QAFox
Download
138
Java program to convert a String to Date
QAFox
Download
139
Java program to check whether the given number is a perfect number
QAFox
Download
140
Java program to sort an Array in Ascending order using built-in functions
QAFox
Download
141
Java program to sort an Array in descending order using built-in functions
QAFox
Download
142
Java program to sort an ArrayList in Ascending and Descending order
QAFox
Download
143
Java program implementing Binary Search
QAFox
Download
144
Java program to implement Bubble Sort Algorithm
QAFox
Download
145
Java program to implement Selection Sort Algorithm
QAFox
Download
146
Java program to implement Insertion Sort Algorithm
QAFox
Download
147
Java program to implement Merge Sort Algorithm
QAFox
Download
148
Java program to implement Quick Sort Algorithm
QAFox
Download
149
Java program implementing Heap Sort Algorithm
QAFox
Download
150
Java program implementing Linear Search Algorithm
QAFox
Download