Size of int in Java is_________________?
Correct answer: C. 32 bit
- A. 8 bit
- B. 16 bit
- C. 32 bit
- D. 64 bit
Explanation
Java defines an int as a signed 32-bit primitive regardless of the machine or JVM implementation. Its range is -2^31 to 2^31 - 1.
Report an error
The more specific you are, the faster it gets fixed. A source beats an opinion.
Prefer email? [email protected]
Practise Software Design and Architecture
493 free Software Design and Architecture MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.
Discussion
Stuck on an option, or know a faster way to get there? Ask or explain it here.
No comments yet. Be the first to explain this one.
Exams that ask Software Engineering questions like this
Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.
More Software Design and Architecture questions
Which of the following command is used to compile the Java program ?
javah stands for ?
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
JIT meaning ?