Check Job Eligibility

This program checks job eligibility based on age, qualification, and experience.

Problem Statement

Write a Java program that checks if a candidate is eligible for a job based on age, qualification, and experience.

Source Code

1 public class JobEligibility {
2 public static void main(String[] args) {
3 int age = 25;
4 boolean graduate = true;
5 int experience = 2;
6 if(age >= 21 && graduate && experience >= 2) {
7 System.out.println("Eligible for job - Eduinq");
8 } else {
9 System.out.println("Not eligible for job - Eduinq");
10 }
11 }
12 }

Program Output

Eligible for job - Eduinq

Explanation

The program checks three conditions: age must be at least 21, candidate must be a graduate, and must have at least 2 years of experience. - All conditions must be true for eligibility, so the program uses logical AND. - If any condition fails, the else block prints not eligible. - This demonstrates how multiple conditions can be combined to make decisions based on several factors, common in recruitment processes. Conclusion: Shows how multiple conditions determine job eligibility.

Quick Links to Explore