0% found this document useful (0 votes)
49 views19 pages

Java Coding Questions

Uploaded by

foeforme
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)
49 views19 pages

Java Coding Questions

Uploaded by

foeforme
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
You are on page 1/ 19

1.

Reverse String Without Using reverse()

2. Find the Second Highest Number in Array


3. Count the Number of Words in a String

4. Remove Duplicates from an Array


5. Check for Palindrome

6. Fibonacci Series
7. Factorial of a Number

8. Prime Number Check


9. Count Vowels and Consonants

10. Sort an Array (Ascending and Descending)


11. Merge Two Arrays

12. Largest Element in Array


13. Check if a Number is Armstrong

14. Reverse a Number


15. Calculate GCD of Two Numbers

16. Check for Anagram


17. Count the Number of Digits in a Number

18. Print Prime Numbers in a Range


19. Swap Two Numbers Without Using a Third Variable

20. Print the Pascal Triangle


21. Find the Missing Number in Array

22. Convert Decimal to Binary


23. Check for Perfect Number

24. Simple Calculator


25. Sum of Digits of a Number

26. Find Length of String

27. Check if a String is Empty


28. Count the Occurrence of a Character in a String

29. Find the First Non-Repetitive Character in a String


30. Remove All Whitespace from a String

31. Find the Common Elements in 2 Arrays


32. Find Factorial Using Recursion

33. Generate Random Number


34. Check if a Year is Leap Year

35. Sum of First N Natural Numbers


36. Implement Bubble Sort

37. Implement Selection Sort

You might also like