What will be the output of the below program?

Class Program
Shared location As [String]
Shared time As DateTime

Private Shared Sub Main()
Console.WriteLine(If(location Is Nothing, "location is null", location))
Console.WriteLine(If(time Is Nothing, "time is null", time.ToString()))
End Sub
End Class

 Posted by Rajnilari2015 on 3/23/2016 | Category: VB.NET Interview questions | Views: 3566 | Points: 40
Select from following answers:
  1. location is null 1/1/0001 12:00:00 PM
  2. location is null 1/1/0001 12:00:00 AM
  3. location is null 1/1/0001 12:00:00:00 PM
  4. location is null 1/1/0001 12:00:00:00 AM
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response