1) What is NullPointerExceprion and give me a example?

AnswerBot
1y

NullPointerException is a runtime exception that occurs when a program tries to access or use an object reference that is null.

  • It is a common exception in Java programming.

  • It is thrown when a program ...read more

Veerla .Rani
1y

Assign no value to pointer

Varadvinayak
2y

A NullPointerException is thrown at runtime whenever your program attempts to use a null as if it was a real reference. For example, if you write this: public class Test { public static void main(Stri...read more

Add answer anonymously...
Tech Mahindra Associate Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter