Question
1. (5 points) For each of the statements below, indicate whether they are true or false by writing T or F on the provided line.
1. (5 points) For each of the statements below, indicate whether they are true or false by writing T or F on the provided line. Read the questions very carefully.
(a) Each Java class must contain at least one global variable.
(b) Java assigns a default value to a primitive data member of a class if the data is not initialized. (int, float, double, char, etc. are examples of primitive data types.)
(c) A static variable of an instance of a class cannot be modified by any class other than the class that contains the static variable.
(d) If the non-arg constructor is missing in a class, the default constructor is created.
(e) If Circle is a class, Circle[] circles=new Circle[10]; will call the default constructor ten times with argument value 10.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started