Java Interview Questions

Q31. For storing a value, double uses
(a) 24 bit
(b) 32 bit
(c) 64 bit
(d) 128 bit

Q32. Approximate range of double is
(a) 4.9e–324 to 1.8e+308
(b) 1.4e-045 to 3.4e+038
(c) -2147483648 to + 2147483647
(d) 0 to 65535

Q33. For logical value, which primitive type is used
(a) Float
(b) Long
(c) Double
(d) Boolean

Q34. Which of the following is intrinsic data type
(a) Classes
(b) Arrays
(c) Integer
(d) Interface

Q35. Which of the following is derived data type
(a) Floating point
(b) Interface
(c) Character
(d) Boolean

Q36. Assigning a value of one type to a variable of another type is known as
(a) Type compression
(b) Type casting
(c) Type correction
(d) Type inheritance

Q37. The syntax "type variable = (type) variable2" is used for
(a) Type casting
(b) Type compression
(c) Type inheritance
(d) Type correction

Q38. Which type of conversions do not lose information about the magnitude of a value
(a) String
(b) Capture
(c) Narrowing
(d) Widening

Q39. Assigning a larger type to a smaller one is known as _________ conversion in Java
(a) Identity
(b) Narrowing
(c) Boxing
(d) Capture

Q40. What is the default value of int
(a) 0.0F
(b) 0L
(c) 0
(d) 1

Q41. What is the default value of boolean in java
(a) True
(b) False
(c) Null
(d) 0.0d

Q42. What are typically used to store information in Java
(a) Variables
(b) Constant
(c) Conversion
(d) None of the above

Q43. Which of the variables serve as symbolic constants
(a) Boolean
(b) Char
(c) Float
(d) Final

Q44. Arithmetic operators in java can not be applied to
(a) Long
(b) Char
(c) Float
(d) Boolean

Q45. Java has a distinction of supporting special operators known as
(a) Bitwise operators
(b) Unary Operators
(c) Conditional Operators
(d) Type Comparison Operator

1 2 3 4 5 6 7 8