Search This Blog

Monday, June 30, 2025

Java Variables - 1

Which of the following are not local variables?

a) Variables declared in a method

b)  Variables declared in a block inside a method

c) Non-static variables declared in a class

d) Variables as method arguments

e) Static variables declared in a class


Created by Nancy K.A.N.

@21:29 30-Jun-2025

Follow on YouTube

https://kannancy.blogspot.com/

Sunday, June 29, 2025

Java Exceptions - 1

 Which of the following keywords are not related to Java exceptions?

a) try

b) throw

c) catch

d) final

e) finally

f) catches

g) throws


Created by Nancy K.A.N.

@22:24 29-Jun-2025

Follow on YouTube

https://kannancy.blogspot.com/

Saturday, June 28, 2025

Java Unchecked Exceptions

 Which of the following are Java unchecked exceptions?

a) InterruptedException

b) ArithmeticException

c) NullPointerException

d) SQLException

e) ClassNotFoundException


Created by Nancy K.A.N.

@22:14 28-Jun-2025

Follow on YouTube

https://kannancy.blogspot.com/


Friday, June 27, 2025

Java classes and Objects

 In which area of memory is the object reference stored?

a) Method area

b) memory registers

c) Stack area

d) Heap area


Created by Nancy K.A.N.

@23:15 27-Jun-2025


Follow on YouTube

https://kannancy.blogspot.com/


Thursday, June 26, 2025

Java Multithreading - 3

 Which interface will you implement to incorporate multithreading in your Java application?

a) Run

b) Runnable

c) Thread

d) Executor


Created by: Nancy K.A.N.

@17:22 26-Jun-2025


Follow on YouTube

https://kannancy.blogspot.com/


Wednesday, June 25, 2025

Java Multithreading - 2

 Which class will you extend to create a multithreaded application?

a) Threads

b) Runnable

c) Thread

d) Object


Created by Nancy K.A.N.

@15:42 25-Jun-2025

Follow my YouTube channel for Tech videos: https://www.youtube.com/@CodingWithNancy

Tuesday, June 24, 2025

Java Interface

 Which interface in Java is a super interface of all interfaces?

a) Collections

b) Collection

c) Thread

d) None


Created by: Nancy K.A.N.

@18:42 24-Jun-2025