1. What will be the output of the program? public class Test { public static void main (String args[]) { String str = NULL; System.out.println(str); } }
Ask Your Doubts Here
Comments
By: guest on 02 Jun 2017 01.26 am
Option B is correct because to set the value of a String variable to null you must use "null" and not "NULL".