Ok, so I'm reading my java book and this is what it reads . The book also mentions that Either I'm interpreting this wrong, which I believe I am, or I doubt your actually wrong :D since your more...
Type: Posts; User: fahman_khan75@yahoo.com
Ok, so I'm reading my java book and this is what it reads . The book also mentions that Either I'm interpreting this wrong, which I believe I am, or I doubt your actually wrong :D since your more...
I do understand what the error is. Basically the variable is not initialized to any value. From my understanding and from what I have read, when passing objects to methods, the reference variable is...
Thank your for your response! I'm aware that's not the conventional way of writing a code; however, I was using my ipad during that time. Apologize for my mistake. Also, I did peak on to the links...
public class demo
{
Public class static void main(String[]args)
{
//Creating a variable that will be a reference to the object
Peoples person_one;
//create an object using void method
...