a. In java, Array entries are auto-initialized to 0.0 when creating an array of
ID: 3881474 • Letter: A
Question
a. In java, Array entries are auto-initialized to 0.0 when creating an array of type double [ b· A. j ava file can contain the definition of more than one static method, but each m ethod must have a different name. c. A constant is a memory location with a name and a type that stores a value whose contents can change during the program lifetime. Abstract class definition begins with the keyword "abstract" keyword followed by Class definition d. e. If class C extends abstract class A, then the following statement is legal: A ob = new C(); f. The only reason to make a class abstract is so that you can put abstract methods in it g. You will get a compile-time error if you attempt to assign any value of type double to any variable of type int. You must declare each variable to have a specific type, but you can change its type with a subsequent declaration statement. You will get a run-time error if you attempt to use any variable in an expression before it has been initialized. h. i.Explanation / Answer
a) True : All enteries is initialised to 0.0
b) False : Cannot have same name
c) False : Content's cant change
d) True
e) True
f) False
g)True
h) false, we can't change that
i) False , you will get compile time error
Thanks
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.