This code does not print any output to the console. What is wrong? firstName?.let { println("Greeting $firstname!")}

Question:This code does not print any output to the console. What is wrong? firstName?.let { println("Greeting $firstname!")}

1.FirstName?.let { println(

2.A null pointer exception is thrown

3.FirstName is equal to null

4.FirstName is equal to an empty string


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!