You are on page 1of 4

Object Oriented Programming with JAVA (4341602)

Practical Test the java development environment setup by implementing a simple


No:2 java program (print: “OOP with JAVA”).

A. Objective:
Implement a simple java program and test the java development environment by executing this 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 analyze 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.

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. Develop
and run a simple 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 21 | P a g e
Object Oriented Programming with JAVA (4341602)

To execute any Java program, the following software or application must be properly installed.

Install the JDK if you don't have installed it, download the JDK and install it.
Set path of the jdk/bin directory.
Create the Java program
To compile the Example program, execute the compiler, javac, specifying the name of the
source file on the command line, as shown here:

C:\>javac Example.java

The javac compiler creates a file called Example.class that contains the bytecode version of
the program. Java bytecode is the intermediate representation of your program that
contains instructions the Java Virtual Machine will execute. Thus, the output of javac is not
code that can be directly executed.
To actually run the program, you must use the Java application launcher called java. To do so,
pass the class name Example as a command-line argument, as shown here:

C:\>java Example

Parameters used in First Java Program class keyword is used to declare a class in Java. public
keyword is an access modifier that represents visibility. It means it is visible to all. static is a
keyword. If we declare any method as static, it is known as the static method. The core advantage
of the static method is that there is no need to create an object to invoke the static method. The
main() method is executed by the JVM, so it doesn't require creating an object to invoke the main()
method. void is the return type of the method. It means it doesn't return any value. main
represents the starting point of the program.
String[] args or String args[] is used for command line argument.
System.out.println() is used to print statement. Here, System is a class, out is an object of the
PrintStream class, println() is a method of the PrintStream class.

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

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

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:

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

L. Observations and Calculations/Input-Output:

M. Practical related Quiz/Questions.


NIL

N. References / Suggestions
1. https://www.javatpoint.com/simple-program-of-java

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

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 24 | P a g e

You might also like