Skip to content

A-2809/JAVA-codes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Practice Questions

This repository contains a set of basic Java practice questions to help beginners understand core concepts in the Java programming language.

Questions

  1. Write a Java program that performs matrix addition on two 3x3 matrices. The program should print the result of the addition in matrix form. Each element of the resulting matrix is the sum of the corresponding elements from the two input matrices.
  2. Write a Java program that collects information for three employees, including their name, year of joining, and address, then displays this information in a formatted output.
  3. Write a Java program that generates the Fibonacci series up to a specified number of terms. The program should prompt the user to enter the number of terms they want in the Fibonacci series, and then display the series.
  4. Write a code in JAVA program to check if the number is prime or not
  5. Write a Java program that prompts the user to choose a number between 1 and 5. Based on the input, the program will print a unique compliment. If the input is outside the range of 1 to 5, the program should display an error message.
  6. Print Hello World in JAVA.
  7. Write a Java program that converts a given number of minutes into years and days. The program should take the number of minutes as input and display how many complete years and remaining days those minutes correspond to.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages