PRACTICE JAVA
In Java all output uses the ______ data type.
a. int b. scan c. String d. double e. char Answer: c. String Explanation: In Java, String is the data type for all outputs.
Are java and javascript the same thing?
a. Yes b. No Answer: b. No Explanation: Java and Javascript are 2 completely different languages. Java is object oriented language used to create desktop apps and mobile apps while Javascript is used for developing
How many times will the following code print “Welcome to Java”?
a. 13 b. 12 c. 11 d. 10 Answer: d. 10 Explanation: The value of count is getting incremented by 1 every time starting from 0 till it reaches 10 which would lead to 10
A Java variable is the name of a
a. data value stored in memory that can change its value but cannot change its type during the program’s execution b. data type stored in memory c. memory block that can change its value but
A java exception is an instance of
a. RuntimeException b. Exception c. Error d. Throwable e. NumberFormatException Answer: d. Throwable Explanation: Every exception is represented by an instance of the class Throwable. To understand it better please go over exception handling as

Aniket Malik
CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS
My students are the presents from God to me
Do you want to learn
Programming?
Hey, I’m Aniket. I’m determined to make you one of the best developers in the history of Information technology.
My only question is, are you ready?