0% found this document useful (0 votes)
13 views2 pages

Top 100 Java Coding Questions

The document lists the top 100 Java coding practice questions covering various topics such as numbers, arrays, strings, patterns, logic, and matrix problems. Each question is designed to enhance coding skills and problem-solving abilities in Java. The questions range from basic concepts like checking prime numbers to more complex tasks like matrix operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Top 100 Java Coding Questions

The document lists the top 100 Java coding practice questions covering various topics such as numbers, arrays, strings, patterns, logic, and matrix problems. Each question is designed to enhance coding skills and problem-solving abilities in Java. The questions range from basic concepts like checking prime numbers to more complex tasks like matrix operations.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Top 100 Java Coding Practice Questions

Numbers, Arrays, Strings, Patterns, Logic, and Matrix Problems

1. Check Prime Number


2. Print Prime Numbers in a Range
3. Check Armstrong Number
4. Print Armstrong Numbers in Range
5. Check Palindrome Number
6. Reverse a Number
7. Sum of Digits of a Number
8. Count Digits in a Number
9. Factorial of a Number
10. Strong Number Check
11. Perfect Number Check
12. Harshad (Niven) Number
13. LCM of Two Numbers
14. GCD / HCF of Two Numbers
15. Fibonacci Series
16. Nth Fibonacci Number
17. Automorphic Number
18. Neon Number
19. Power of Number (x^y)
20. Swap Two Numbers

21. Largest Element in Array


22. Smallest Element in Array
23. Second Largest Element
24. Sum of Array Elements
25. Average of Array
26. Reverse an Array
27. Sort Array (Ascending)
28. Sort Array (Descending)
29. Find Duplicate Elements
30. Remove Duplicates
31. Count Frequency of Elements
32. Search Element in Array
33. Merge Two Arrays
34. Find Missing Number in Array
35. Left Rotate Array
36. Right Rotate Array
37. Find Common Elements in Two Arrays
38. Move Zeros to End
39. Find Maximum Difference
40. Second Smallest Element

41. Reverse a String


42. Check Palindrome String
43. Count Vowels and Consonants
44. Count Words in String
45. Remove Spaces from String
46. Convert Uppercase to Lowercase
47. Count Frequency of Characters
48. Remove Duplicate Characters
49. Check Anagram Strings
50. Print ASCII Value of Characters
51. Find Largest Word in Sentence
52. Replace Spaces with Special Character
53. Check Substring Present or Not
54. Concatenate Two Strings
55. Reverse Each Word in Sentence
56. Remove Vowels from String
57. Check Pangram
58. Count Digits in String
59. Print Duplicate Characters
60. Sort Characters of String

61. Star Increasing Pattern


62. Star Decreasing Pattern
63. Number Increasing Pattern
64. Repeated Number Pattern
65. Pyramid Star Pattern
66. Diamond Star Pattern
67. Hollow Square Pattern
68. Floyd’s Triangle
69. Pascal Triangle
70. Number Pyramid
71. Alphabet Triangle
72. Reverse Number Triangle
73. Hollow Pyramid
74. Butterfly Pattern
75. Sandglass Pattern

76. Print Multiplication Table


77. Check Even or Odd
78. Largest of Three Numbers
79. Leap Year Check
80. Simple Interest Calculation
81. Compound Interest Calculation
82. Area of Circle
83. Area of Triangle
84. Convert Decimal to Binary
85. Binary to Decimal Conversion
86. LCM of Array Numbers
87. GCD of Array Numbers
88. Sum of First N Natural Numbers
89. Sum of Squares of Numbers
90. Check Positive, Negative, Zero

91. Temperature Conversion


92. Rotate Array Right by 1
93. Check Balanced Parentheses
94. Find Pair With Given Sum in Array
95. Matrix Addition
96. Matrix Multiplication
97. Transpose of Matrix
98. Spiral Matrix Printing
99. Find Row With Maximum Sum in Matrix
100. Find Diagonal Sum of Matrix

You might also like