new throws an exception OutofmemoryException if unable to allocate memory.
But in general I have seen after wherever we are doing new we don't enclose in try catch block.
Is there any specific reason? or what are the coding guidelines for using new
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit GuptaPosted Mar 29, 2018, 1:37 PM
Nitin SontakkePosted Mar 29, 2018, 10:04 PM
zarana agrawalPosted Mar 29, 2018, 1:30 PM
Amit GuptaPosted Mar 29, 2018, 2:41 AM
Nanddeep NachanPosted Mar 29, 2018, 12:53 AM