Skip to content

This repository contains 100 questions to get acquainted with Java syntax.

Notifications You must be signed in to change notification settings

Saswat7101/100-Java-Practice-Questions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

100-Java-Practice-Questions

This repository contains 100 questions to get acquainted with Java syntax.

Here's the list of questions

  1. Write a Java program to print "Hello, World!" to the console.
  2. Write a program that takes two numbers as input and prints their sum.
  3. Write a program that checks if a given number is even or odd.
  4. Write a program to calculate the factorial of a number.
  5. Write a program to check if a given string is a palindrome (reads the same forwards and backwards).
  6. Write a program to print the Fibonacci series up to a given number of terms.
  7. Write a program to check if a given number is prime.
  8. Write a program to reverse a given string.
  9. Write a program to find the maximum element in an array of integers.
  10. Write a program to calculate the sum of elements in an array.
  11. Write a program to rotate the elements of an array to the left by a given number of positions.
  12. Write a program to remove duplicate elements from an array.
  13. Write a program to perform binary search on a sorted array.
  14. Write a program to implement the bubble sort algorithm for sorting an array.
  15. Write a program to implement the selection sort algorithm for sorting an array.
  16. Write a program to implement the insertion sort algorithm for sorting an array.
  17. Write a program to multiply two matrices.
  18. Write a program to perform a linear search for an element in an array.
  19. Write a program to reverse the elements of an array.
  20. Write a program to find the common elements between two arrays.
  21. Write a program to check if two strings are anagrams of each other.
  22. Write a program to count the number of vowels and consonants in a given string.
  23. Write a program to find the GCD of two numbers.
  24. Write a program to check if a given year is a leap year.
  25. Write a program to check if a given number is an Armstrong number.
  26. Write a program to check if a given number is a palindromic number.
  27. Write a program to check if a given number is a perfect number.
  28. Write a program to find the LCM of two numbers.
  29. Write a program to calculate the result of raising a number to a power.
  30. Write a program to calculate the area of various shapes (circle, rectangle, triangle).
  31. Write a program to check if a given number is a strong number.
  32. Write a program to generate the Fibonacci series using recursion.
  33. Write a program to check if a given number is a happy number.
  34. Write a program to find the Nth Fibonacci number without using recursion.
  35. Write a program to check if a given number is a pronic number.
  36. Write a program to check if a given number is a Disarium number.
  37. Write a program to find the prime factors of a given number.
  38. Write a program to check if a given number is a duck number.
  39. Write a program to check if a given number is a neon number.
  40. Write a program to check if a given number is a spy number.
  41. Write a program to count and calculate the sum of digits in a given number.
  42. Write a program to check if a given number is a Harshad number.
  43. Write a program to check if two arrays are disjoint sets.
  44. Write a program to calculate the factorial of a number using iteration.
  45. Write a program to find and display duplicate characters in a string.
  46. Write a program to check if a given string is a pangram.
  47. Write a program to check if a given string is a palindromic string.
  48. Write a program to check if a given string is a prime string.
  49. Write a program to calculate the simple interest.
  50. Write a program to check if a given number is an abundant number.

About

This repository contains 100 questions to get acquainted with Java syntax.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages