Question: Q2: Write a working Java program displays student information on console when executed. You will need to: (a) Crete a class Student (b) Create main
Q2: Write a working Java program displays student information on console when executed. You will need to: (a) Crete a class Student (b) Create main method() in it (c) Declare three variables name, age, address with appropriate data types. (d) Initialize variables with YOUR NAME, YOUR AGE, and YOUR ADDRESS. (e) Display the following message on the screen using a single System.out.println() statement. Student Name: YOUR NAME Student Age: YOUR AGE Student Address: YOUR ADDRESS Share your source code and a screenshot of your output. Note: Only a complete working code is expected without explanation of any kind. [3 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
