Assignment 1-A

Your First Java Program

Create your first Java program and understand the fundamentals of Java development environment. Set up the JDK, write a Hello World program, and explore basic Java syntax and structure.

2-3 hours
Beginner
50 Points
Submit Assignment
What You'll Practice
  • Set up JDK development environment
  • Write and compile Hello World program
  • Understand basic Java syntax
  • Use input/output operations
  • Apply proper code organization
Contents
01

Assignment Overview

In this introductory assignment, you will set up your Java development environment, create your first Java program, and demonstrate understanding of basic Java concepts. This assignment builds the foundation for all future Java development.

Skills Applied: This assignment tests your understanding of Java setup, basic syntax, variables, data types, and input/output from Module 1.
Environment Setup

Install JDK and configure your development environment

Basic Syntax

Write and understand Java program structure

Input/Output

Handle user input and display output

02

Requirements

Part 1: Environment Setup

  • Install JDK 17 or later on your system
  • Configure JAVA_HOME environment variable
  • Verify installation by running java --version and javac --version
  • Set up an IDE (IntelliJ IDEA, Eclipse, or VS Code with Java extensions)

Part 2: Hello World Program

  • Create a Java class named HelloWorld
  • Write a main method that prints "Hello, World!" to the console
  • Compile and run your program from the command line
  • Include comments explaining each part of the code

Part 3: Personal Introduction Program

  • Create a program that asks for user's name, age, and favorite programming language
  • Use appropriate data types for each variable
  • Display a formatted message with all the information
  • Handle potential input errors gracefully
03

Submission Guidelines

Folder Structure: Submit all files in a folder named assignment1_yourname
Required Files:
  1. HelloWorld.java - Your Hello World program
  2. PersonalIntro.java - Your personal introduction program
  3. README.txt - Brief description and instructions to run your programs
  4. Screenshot of successful program execution
Ready to submit? Make sure you've completed all requirements!
Submit Now
04

Grading Rubric

Criteria Points Description
Environment Setup 10 Proper JDK installation and configuration
Hello World Program 15 Correct syntax, compilation, and output
Personal Intro Program 15 User input handling, variable usage, formatted output
Code Comments 5 Clear and helpful comments explaining code
Documentation 5 README file with clear instructions
Total 50