0% found this document useful (0 votes)
6 views1 page

First Java Program Assignment Guide

Uploaded by

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

First Java Program Assignment Guide

Uploaded by

raja6edge
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd

============================================

========================
ASSIGNMENT 01: FIRST JAVA PROGRAM
============================================
========================

QUESTION:
Write a Java program to print a message. The Java file name and class
name should be the same.

OBJECTIVE:
To learn how Java requires the file name and class name to match.

ANSWER:
// File Name: [Link]
public class FileNameExample {
public static void main(String[] args) {
[Link]("Java file name and class name should be the
same");
}
}

EXPECTED OUTPUT:
Java file name and class name should be the same

STUDENT DETAILS:
Name : Gaurav Kumar
Email : gk3759307@[Link]
Course : Java – Spoken Tutorial, IIT Bombay
College : Goverment Polytechnic Gaya

You might also like