This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line! See this thread for details.
but classC was not initialized and has therefore the default value null. This gives a NullPointerException. You have to create a ClassC object at some point.
Hi Divyya,
In ClassB you have declared but not instantiated ClassC .To refer to ClassC you have to either create an instance of the class or make the ClassC method static .If you choose to make the getValue() method static you will require to make the String variable value static too .