0% found this document useful (0 votes)
16 views1 page

Java Programming Quiz Questions and Answers

The document contains a series of multiple-choice questions related to Java programming. Key points include that Java is not short for JavaScript, arrays in Java are objects, and Java is a platform-independent language. Additionally, it highlights that keywords cannot be used as variable names and private attributes are only accessible within the same class.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Java Programming Quiz Questions and Answers

The document contains a series of multiple-choice questions related to Java programming. Key points include that Java is not short for JavaScript, arrays in Java are objects, and Java is a platform-independent language. Additionally, it highlights that keywords cannot be used as variable names and private attributes are only accessible within the same class.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

[Link] is short for "JavaScript".

a. true b. false
Ans; b)false
[Link] in java are-
a. object references b. object [Link] data type [Link]
[Link]
3. Which statement is true about Java?
a) Java is a sequence-dependent programming language
b) Java is a code dependent programming language
c) Java is a platform-dependent programming language
d) Java is a platform-independent programming language
Ans.d Java is a platform-independent programming language
4. Which of these cannot be used for a variable name in Java?
a) identifier & keyword
b) identifier
c) keyword
d) none of the mentioned
Ans;C)keywords

5. What is the visibility of private attributes in Java?


a)Accessible from anywhere
b) Accessible only within the same class
c) Accessible from subclasses
d) Accessible within its own package

Ans ; B) Accessible only within the same class

You might also like