Which of the following is NOT a primitive data type in Java?
II_III Years-Java, Python, and C Quiz

Quiz
•
Other
•
Professional Development
•
Hard
SHANMUGAPRIYA.P MCE-LECT/IT
Used 6+ times
FREE Resource
50 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
int
float
String
boolean
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which keyword is used to define a constant in Java?
const
final
static
constant
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output of Java code System.out.println(5 + "5");?
10
55
5 + 5
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the static keyword in Java?
To create a constant
To allow a method or variable to be accessed without creating an instance of the class
To prevent inheritance
To define a global variable
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is true about method overloading?
Methods must have the same name and return type
Methods must have different names
Methods must have the same name but different parameters
Methods must have the same name and parameters
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the default value of an int variable in Java?
0
1
null
undefined
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following is NOT a valid access modifier in Java?
public
private
protected
global
Create a free account and access millions of resources
Similar Resources on Quizizz
50 questions
Repaso 1er parcial EDSO (UD1-UD5)

Quiz
•
Professional Development
45 questions
แบบทดสอบวิชาไมโครคอนโทรลเลอร์

Quiz
•
KG - Professional Dev...
50 questions
I Years_Python

Quiz
•
Professional Development
45 questions
PLC TEST

Quiz
•
Professional Development
55 questions
OIC Reviewer

Quiz
•
Professional Development
46 questions
Domain 4: Web Applications

Quiz
•
Professional Development
51 questions
SAP Transportation Management Quiz 51 - 100

Quiz
•
Professional Development
51 questions
COSAS BARIAS

Quiz
•
Professional Development
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade