Search This Blog

Showing posts with label data type. Show all posts
Showing posts with label data type. Show all posts

Monday, October 6, 2025

String Literals - 1

 Where JVM stores the string literals?

a) Stack memory

b) Special area on the stack

c) String constant pool

d) none of the above


Created by Nancy K.A.N.

@13:32 06-Oct-2025

Tuesday, August 26, 2025

Data type conversion - Java

 An integer variable does not have a fractional component. When a floating point value is assigned to an integer ______________________ happens.

a) Shrinking

b) upcasting

c) nothing

d) truncation


Created by Nancy K.A.N.

@14:42 26-Aug-2025