What is the correct way to initialize a nullable variable?

Question:What is the correct way to initialize a nullable variable?

1.Val name = null

2.Var name: String

3.Val name: String

4.Val name: String? = null


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!