Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

JAVA

SESSION 1: INTRODUCTION TO JAVA


Assignment 3

JAVA

SESSION 1: INTRODUCTION TO JAVA

Table of Contents

1. Introduction .......................................................................................................................................................................... 2

2. Objective................................................................................................................................................................................ 3

3. Prerequisites ........................................................................................................................................................................ 3

4. Associated Data Files .......................................................................................................................................................... 3

5. Problem Statement .............................................................................................................................................................. 3

6. Expected Output .................................................................................................................................................................. 3

7. Approximate Time to Complete Task ............................................................................................................................... 3

2
JAVA

1. Introduction

This assignment will test your skills on Variables and data types learned in the class.

2. Objective

This assignment will help you to master the following concepts:

Variable declaration and assignment of value


Operators &
logic building

3. Prerequisites

Declare and initialize two variables with some values respectively

4. Associated Data Files

Not applicable.

5. Problem Statement

Write a program in java to compare the truth table of Bitwise AND and Logical AND.

Hint: - Take two-byte variables and take the input from the user(as 0 0, 0 1, 1 0, 1 1) and show the result
for Bitwise AND and Logical AND.

6. Expected Output

Print the result for one case.

Files to be submitted for verification


1. Eclipse Console Screenshot with the relevant output.
2. Eclipse files in below format

3. Don’t submit compressed files, only .java files, only .class files, only screenshot of the
output, or other assignment files in the same .git link. If found then the assignment will
be rejected

7. Approximate Time to Complete Task

30 mins
3

You might also like