File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help" Watch "Help" New topic


Lucky Singh
Ranch Hand

Joined: Jan 19, 2004
Posts: 125
What is wrong witht he following-?
public class A
public static void main(String args[])
B bb = new B();;//////////////Null Pointer Exception
class B
public void show()
//do something.
Getting a Null Pointer Exception on marked line.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24195

Presumably the error is inside "show".

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Help
It's not a secret anymore!