GIAC
GSSP-JAVA · Question #36
Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error? abstract class P {} //1 private class Q {} //2 static class R {} //3 transient…
The correct answer is B. Line 1. See the full explanation below for the reasoning.
Question
Given below are top-level class declarations. Which of these class declarations would not produce a compile-time error? abstract class P {} //1 private class Q {} //2 static class R {} //3 transient class S {} //4
Options
- ALine 3
- BLine 1
- CLine 2
- DLine 4
How the community answered
(17 responses)- A6% (1)
- B76% (13)
- C12% (2)
- D6% (1)
Community Discussion
No community discussion yet for this question.