Computer Applications
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:
Java Intro
341 Likes
Answer
class BioData {
public static void main(String args[]) {
System.out.println("Name: Shweta Nayak");
System.out.println("Father's Name: Arvind Nayak");
System.out.println("Date of birth: 12/12/2005");
System.out.println("Blood Group: O+");
System.out.println("Aadhar Card No.: 4321 8756 9978");
System.out.println("State: Karnataka");
}
}
Answered By
169 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.
Design a program in Java to display the following information on the output screen:
Name:
Class:
Roll No.:
Subject:
School: