0% found this document useful (0 votes)
37 views7 pages

Lab Digital Assignment - 1

This document contains a lab assignment submission from a student named Tanay Dubey. The assignment includes solutions to 5 questions involving basic Java programs - displaying a message, showing default primitive data type values, comparing strings, using command line arguments, and checking if a number is Armstrong. For each question, the student's code and output is provided.

Uploaded by

Tanay Dubey
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)
37 views7 pages

Lab Digital Assignment - 1

This document contains a lab assignment submission from a student named Tanay Dubey. The assignment includes solutions to 5 questions involving basic Java programs - displaying a message, showing default primitive data type values, comparing strings, using command line arguments, and checking if a number is Armstrong. For each question, the student's code and output is provided.

Uploaded by

Tanay Dubey
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/ 7

Lab Digital Assignment - 1

Name – Tanay Dubey


Registration Number – 19BCT0185
Course Code and Name – CSE1007 Java Programming
Embedded Lab Component
Faculty Name – Gopichand G
Slot – L27+28
Fall Semester 2020-21
Q1) Write a program to display any message
Soln)
Code

Output
Q2) Write a Java program to display default
value of all primitive data types of Java.
Soln)
Code

Output
Q3) Write a program check two strings are
equal or not.
Soln)
Code

Output
Q4) Write a program give example for
command line arguments.
Soln)
Code

Output
Q5) Write a program to check or a given
number is Armstrong number or not.
Soln)
Code
Output

You might also like