Computer Applications
Design a program in Java to display the following information on the output screen:
Name:
Class:
Roll No.:
Subject:
School:
Java Intro
281 Likes
Answer
class StudentInfo {
public static void main(String args[]) {
System.out.println("Name: Akshay Anand");
System.out.println("Class: 10");
System.out.println("Roll No.: 5");
System.out.println("Subject: Computer Applications");
System.out.println("School: KnowledgeBoat");
}
}
Answered By
158 Likes
Related Questions
The main function in a Java program is declared as:
public static void main (String args[])
What is the significance of the words public, static and void?What does the term 'Compilation' mean?
A Java program uses Compiler as well as Interpreter. Explain.
You want to display your bio-data on the output screen. Write a program in Java to perform the task in the given format:
Name:
Father's Name:
Date of birth:
Blood Group:
Aadhar Card No.:
State: