Which data types can be used with a switch statement in java


Problem:

Question 1: In java, which data types can be used with a switch statement and which can't? Explain thoroughly.

Question 2: Create a test program that defines and uses both the default and non-default constructor of a class. Create a class of students in a college. Make sure you include name, phone number, student number, current course, current GPA, and current grade.Save your assignment as a .cpp file. Place this .cpp file in a single zipped folder. Show the code, demonstrate it works properly and describe what it is doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Which data types can be used with a switch statement in java
Reference No:- TGS0891612

Expected delivery within 24 Hours