(b) Name the reserved word which:
(i) Indicates that a method has no return type
(ii) Marks the variable as a class variable
Answers
Answered by
1
Answer:
(I). The void keyword is used to declare that a method does not return any value.
(II). Class variables − Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block. There would only be one copy of each class variable per class, regardless of how many objects are created from it.
Similar questions
English,
2 months ago
Science,
2 months ago
Social Sciences,
5 months ago
Math,
5 months ago
Math,
11 months ago