Search This Blog

Tuesday, October 14, 2025

Java Closeable Interface methods

 Which of the following is a method of a Closeable interface?

a) void close (ByteStream ob)

b) void close (CharacterStream ob)

c) void close (FileStream file)

d) int close()

e) void close()


Created by Nancy K.A.N.

@00:36 15-Oct-2025

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

Thursday, October 2, 2025

Java Closeable Interface

 Which of the following is the super interface of Closeable?

a) Close

b) AutoClose

c) AutoCloseable

d) Channel


Created by Nancy K.A.N.

@17:09 02-Oct-2025