It doesn't. Void has the same meaning in both.
The voiddata type is used when a function doesn't return any value, and/or when it has no parameters at all. Pointer type 'void *' is a generic pointer.A void pointer is used when it needs to be assigned to different data types later on in a program. Since it avoids type checking, void pointers should be used with care.
Nothing.
you can leave it blank or u can use void
These two keywords can't really be used together unless you are accessing this object within a void method.void printObject() {System.out.println(this.toString());}
No extern keyword in Java.
doesn't return the value.
A function's signature is defined by the number and type of parameters. Functions with the same signature cannot differ by return type alone. Use of the const keyword also constitutes part of the signature.
Use the super keyword. Example: public class Super { public void methodToOverride() { } } public class Sub { @Override public void methodToOverride() { super.methodToOverride(); } }
In C++ NULL is defined as 0. It's a design failure, will be fixed with a new 'nullptr' keyword.
It depends on what program you design really
what is the use of new keyword in awt programming
Call by reference means calling a function using a reference to a variable or a pointer. You call a function by passing refrences to a variable. For eg: void x(int &a) { a=2; } void main() { int s=3; x(s); } OR void a(int &c) { c=5;}void main(){ int *p; *p=2a(*p);}