{{theTime}}

Search This Blog

Total Pageviews

What is the output of the following code in Java?

System.
out.println((String)null) ;
 
Answers:
a) NullPointerException
b) null
c) RuntimeException
d) NULL

No comments:

Java Virtual Threads Java Virtual Threads Java Virtual Threads, introduced in Java 21 (JDK 18), are lightweight ...