KnowledgeBoat Logo
|

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