0% found this document useful (0 votes)
30 views5 pages

Ooj Prac 3 - 30

This document outlines a practical assignment on data types in Java. The objectives are to demonstrate various Java data types in a program and develop problem solving skills using data types. Students will learn about primitive and non-primitive data types like integer, floating point, character, boolean, classes, interfaces and arrays. The expected outcomes are being able to use data types in a Java program. Safety precautions for the computer lab are also provided. Questions related to Java data types are given to assess learning.

Uploaded by

ABCD EFG
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views5 pages

Ooj Prac 3 - 30

This document outlines a practical assignment on data types in Java. The objectives are to demonstrate various Java data types in a program and develop problem solving skills using data types. Students will learn about primitive and non-primitive data types like integer, floating point, character, boolean, classes, interfaces and arrays. The expected outcomes are being able to use data types in a Java program. Safety precautions for the computer lab are also provided. Questions related to Java data types are given to assess learning.

Uploaded by

ABCD EFG
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Object Oriented Programming with JAVA (4341602)

Practical
No:3 Develop a basic java program that demonstrates data types of JAVA.

A. Objective:
Demonstrate the use of various data types in a java program.

B. Expected Program Outcomes (POs):


1. Basic and Discipline specific knowledge: Apply knowledge of basic mathematics, science and
engineering fundamentals and engineering specialization to solve the Information Technology
(IT) problems.
2. Problem analysis: Identify and analyses well-defined Information Technology (IT) problems using
codified standard methods.
3. Design/ development of solutions: Design solutions for well-defined Information Technology (IT)
technical problems and assist with the design of systems components or processes to meet
specified needs.
4. Engineering Tools, Experimentation and Testing: Apply modern Information Technology (IT) tools
and appropriate technique to conduct standard tests and measurements.

C. Expected Skills to be developed based on competency:


This practical is expected to develop the following skills for the industry-identified competency:
‘Develop a program using object-oriented programming concepts with Java to solve the given
problems.’
Problem solving skills using data types in java.

D. Expected Course Outcomes (COs): CO-1: Understand OOP (Object-Oriented Programming)


concepts with java.

E. Practical Outcome
After completion of this practical student will be able to, 1. Use
various data types in a java program.

F. Expected Affective Domain Outcome (ADOs)


1. Write a program code by following standard programming rules.
2. Handle computer systems carefully with safety and necessary precaution.
3. Turn off systems after completion of practical lab to save power.

G. Prerequisite Theory:

226120316030 25 | P a g e
Object Oriented Programming with JAVA (4341602)

Data Types in Java


Data types specify the different sizes and values that can be stored in the variable. There are two
types of data types in Java:
Primitive data types: The primitive data types include Boolean, char, byte, short, int, long, float
and double.
Non-primitive data types: The non-primitive data types include Classes, Interfaces, and Arrays.

Java Primitive Data Types


In Java language, primitive data types are the building blocks of data manipulation. These are the
most basic data types available in Java language.
Integers
This group includes byte, short, int, and long, which are for whole-valued signed numbers.
Floating-point numbers
This group includes float and double, which represent numbers with fractional precision.
Characters
This group includes char, which represents symbols in a character set, like letters and numbers.
Boolean
This group includes Boolean, which is a special type for representing true/false values.

H. Experimental set up/ Program Logic-Flow chart: N.A.

I. Resources Required
S. No. Instrument/Components / Specification Quantity
Software
1. Computer System Operating System: Any Operating System NA
Processor: At least 1GHz processor
Physical Memory: 128 MB or higher
Disk space required: 256 MB for JDK

2. Java Development Kit JDK 8 or higher. NA

J. Safety and necessary Precautions followed


1. Do not force components into computer ports.
2. Use genuine software.
3. Use comments to make the program more readable.
4. Turn off the power and unplug equipment after completion of the laboratory session.

K. Procedure to be followed/Source code:

226120316030 26 | P a g e
Object Oriented Programming with JAVA (4341602)

……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….

226120316030 27 | P a g e
Object Oriented Programming with JAVA (4341602)

……………………………………………………………………………………………………………………………………………….
……………………………………………………………………………………………………………………………………………….

L. Observations and Calculations/Input-Output:

M. Practical related Quiz/Questions.

Q. 1 Which is not an integer data type? A.


int B. short
C. long D. double

Ans.

Q. 2 Write output for following code.


class Main {
public static void main(String args[]) {
int t;
System.out.println(t);
}
}
A. 0 B. Garbage value.
C. Compile error. D. Runtime error.

Ans.

N. References / Suggestions

226120316030 28 | P a g e
Object Oriented Programming with JAVA (4341602)

1. https://www.javatpoint.com/java-data-types

O. Assessment-Rubrics

Total Exceptional (5- Satisfactory (4 to Developing Limited (1Mark)


Criteria Marks 3 -Marks) (2Marks)
Marks)

Presenting practical
Watched other session but not
Performed Practical Performed Practical students performing
Engagement 5 attentively
him / her self with others help practical but not
tried him / her self participated in
performance

More than 5 Errors


Accurately 1-2Errors/mistakes 3-5Errors/mistakes
Accuracy 5 /mistakes
done found identified
committed

No errors, Program Complete write-up


is well Executed and and output tables Some of the Poor write-up and
Documentation 5 Documented but presentation is commands missing diagram or missing
Properly. poor with missing outputs content

Partially understood
Understanding Fully understood the Understood the performance & Partially understood
& 5 performance & can the performance but and cannot give
Explanation explain perfectly cannot explain can give little explanation
explanation
Work is submitted
Work done after Work submitted
Completed the work later than 1st week
Time 5 2nd week but before
within 1 week but by the end of
the end of 3rd week after 3rd week time
2nd week

Sign with Date

226120316030 29 | P a g e

You might also like