what is null pointer?
369214
Its a pointer that has the value of 0 (NULL).
530460
in c, it is not needed to return anything. So you can call a void main.\nIn c++, you need to return an int from main. The convention is to return 1 for suceess and 0 for a failure.\nC today also supports an int main()
601218
stmt = connection.createStatement();\n\n// check from User_tables data dictionary table \n//to see if the table exists.\nrset = stmt.executeQuery(" SELECT Table_Name FROM\n                           User_Tables "+ \n                         " WHERE Table_Name='XYZ'");    \n\n// if the resultset of the above query \n//does not have any record, \n//it means table is not existing.\nif (!rset.next())\n{\n          //operation to do if table doesn't exist\n}\nelse\n{\n          //operation to do if table exists\n}
338060
An instance in Java is referred to the Memory block where the Object variables are placed on the HEAP. \n\nSuppose we have the following Object\n\nClass obj{\nprivate int a;\nprivate int b;\n\npublic int Sum(){\nreturn a+b;\n}\n\n}\n\nnow this Objecet (obj) is instanced as follows\n\npuiblic static void main(String argv[]){\nobj myObj = new obj(); //Creates an instance of obj on the heap\nint a =myObj.Sum();//Call to the sum method of the obj class\n}\n\nWhen a class in instantiated all the PUBLIC methods are in scope of the calling class
265933
Object is an instance of a class.\n\nConstructor is a also a method which only gets called when an object is instantiated.  (ex. Myclass a = new Myclass)\n\nMethod is a new term for function.  You may write lines of codes inside of a method, and reuse it everytime(OO design)\n\nclass MyClass\n{\n   MyClass() // constructor\n   int AddNumber(int a, int b);  // method AddNumber returns a+b\n}\n\nmain\n{\n  Myclass myObject = new MyClass();  // myObject is an object\n  int sum = myObject.AddNumber(1,2); // 1 + 2 = 3\n  return 0;\n}\n\n\nHope that helps!!! Go java
150130
this is pointer to invoking object in Javascript.\nSo you're passing current object for update to a function in your code. \nThere are also some alternate ways (document.form.xxx) to reference to current object, but this is simple and to the point when you just want to change the object from where you're making method invocation.
436488
I assume we're in C or Java, right???\n\na) Loss of precision\nb) can't assign a string to a char (Java - in C there are no strings)\nc) value out of range\nd) incompatible type\ne) WORKS!!!
155011
I'm supposing you are talking about C++.\nIn C++ Constructor is called when you are constructing it using new operator. You can pass parameter then.\nObjectpointer=new Object(param1, pram2,....)
191602
source: MICROSOFT VB HELP FILES.\n\nPrint Method\n         \n\nPrints text in the Immediate window. \n\nSyntax\n\nobject.Print [outputlist]\n\nThe Print method syntax has the following object qualifier and part:\n\nPart Description \nobject Optional. An object expression that evaluates to an object in the Applies To list. \noutputlist Optional. Expression or list of expressions to print. If omitted, a blank line is printed. \n\n\n\nThe outputlist argument has the following syntax and parts:\n\n{Spc(n) | Tab(n)} expression charpos\n\nPart Description \nSpc(n) Optional. Used to insert space characters in the output, where n is the number of space characters to insert. \nTab(n) Optional. Used to position the insertion point at an absolute column number where n is the column number. Use Tab with no argument to position the insertion point at the beginning of the next print zone. \nexpression Optional. Numeric expression or string expression to print. \ncharpos Optional. Specifies the insertion point for the next character. Use a semicolon (;) to position the insertion point immediately following the last character displayed. Use Tab(n) to position the insertion point at an absolute column number. Use Tab with no argument to position the insertion point at the beginning of the next print zone. If charpos is omitted, the next character is printed on the next line. \n\n\n\nRemarks\n\nMultiple expressions can be separated with either a space or a semicolon.\n\nAll data printed to the Immediate window is properly formatted using the decimal separator for the locale settings specified for your system. The keywords are output in the appropriate language for the host application.\n\nFor Boolean data, either True or False is printed. The True and False keywords are translated according to the locale setting for the host application.\n\nDate data is written using the standard short date format recognized by your system. When either the date or the time component is missing or zero, only the data provided is written.\n\nNothing is written if outputlist data is Empty. However, if outputlist data is Null, Null is output. The Null keyword is appropriately translated when it is output.\n\nFor error data, the output is written as Error errorcode. The Error keyword is appropriately translated when it is output.\n\nThe object is required if the method is used outside a module having a default display space. For example an error occurs if the method is called in a standard module without specifying an object, but if called in a form module, outputlist is displayed on the form.\n\nNote   Because the Print method typically prints with proportionally-spaced characters, there is no correlation between the number of characters printed and the number of fixed-width columns those characters occupy. For example, a wide letter, such as a "W", occupies more than one fixed-width column, and a narrow letter, such as an "i", occupies less. To allow for cases where wider than average characters are used, your tabular columns must be positioned far enough apart. Alternatively, you can print using a fixed-pitch font (such as Courier) to ensure that each character uses only one column.
654224
#ifndef QUEUE_H_\n#define QUEUE_H_\nFile: queue.h\ntypdef item_t int;\nstruct Queue  {\n   item_t contents;\n   Queue* next;\n};\n\n/* Public Interface */\n/* Adds a new item to the end of the queue */\nvoid enqueue(item_t datum, Queue* head);\n/* Removes the head of the queue. */\nQueue* dequeue( Queue* head );\n/* Returns the element at the top of the queue */\nitem_t* top(Queue* head); \n#endif\n--------\n\nFile: Queue.c\n\nvoid enqueue(item_t datum, Queue* current){\n      if (current == NULL){ \n           current = malloc(sizeof(Queue));\n           current->contents = dataum;\n           current->next = NULL;\n           return;\n       }\n      while (current->next != NULL){\n         current = current->next;\n      }\n      current->next = malloc(sizeof(Queue));\n      current->next->contents = datum;\n      current->next->next = NULL;\n      return;\n  }\nQueue* dequeue(Queue* head){\n   if (head == NULL){ return head;}\n   Queue* trash = head;\n   head = head->next;\n   free(trash);\n   trash = NULL;\n   return head;\n}\n\nitem_t* top(Queue* head){\n   if (head == NULL){ return NULL; }\n   else {\n      return &head->contents;\n  }\n}
292438
Taking input in commandline is not as simple as it is in C of c++. U need use Sytem.in and get the inputstream and then use it.\n\nI recommend u to use swing JOptionPane that shows a input dialog and and get the input from the user.\n\nHere is the sample using Swing\n\nimport javax.swing.JOptionPane;\n\npublic class UserInput\n{\npublic static void main(String[] args)\n{\n    String str = JOptionPane.showInputDialog( null , "Enter Something");\n    System.out.println(str);\n}\n}
209333
no where.  Just the data pointers are deleted.
370055
Something like this maybe:\n\n Runtime.getRuntime().exec("C:" + pathSeparator +\n"jdk1.3.1" + pathSeparator + "bin" + pathSeparator + "javac.exe " + file);  } catch(Exception e)  { e.printStackTrace();  }  }  }
934231
Can't answer the first question.\n\nThe native state of computer memory is null. That is not the same as blank or zero; it's nothing.
300000
You don't say where it happens. Always give as much info as you can, computers are very complicated machines, and there are millions of pireces of software running around.\n\n- If you that's an error in a program you wrote, you are using a variable as an object when it is not (it is probably a native type, or null)\n\n- If that's an error from software you didn't write, they shipped it with a bug, and there's not much you can do except report it and try to work around it...
193431
Probably because the constructor doesn't accept objects as arguments. Just a guess, though.
1127525
- you cannot use new with primitive types\n- primitive types cannot have a null value like object references do\n- primitive types are not derived from java.lang.Object\n- primitive types have no class definition, no members, and no methods\n- as members in objects primitive variables are always Serializable (no need to declare them as such)