aspose file tools*
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 Spring in Action 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: 24187

Presumably the error is inside "show".

[Jess in Action][AskingGoodQuestions]
subject: Help