What would happen if you say this = null

Showing Answers 1 - 17 of 17 Answers

Yogesh

  • Jun 1st, 2005
 

this will give a compilation error as follows 
cannot assign value to final variable this 

sachin Dhanmane

  • Aug 31st, 2005
 

It is absolutely correct 

  Was this answer useful?  Yes

this=null

  • Sep 3rd, 2005
 

Question : What would happen if you say this = null  
this will give a compilation error as follows  
cannot assign value to final variable this  
 

  Was this answer useful?  Yes

usha

  • Sep 7th, 2005
 

it will gives the compilation error

chirag

  • Sep 8th, 2005
 

this=null assigns null value to the current invoking object

  Was this answer useful?  Yes

AvisNAb

  • Sep 15th, 2005
 

It will come up with Error Message

"The left-hand side of an assignment must be a variable"

 

Devidas Sonawane

  • Oct 3rd, 2005
 

this is a keyword and not a variable and we can't any value with this keyword. for utilisation of variable we are using this keyword.

xyz

  • Oct 6th, 2005
 

Hey guy If u know correct answer .only answer

  Was this answer useful?  Yes

Raja

  • Oct 11th, 2005
 

compilation Error

  Was this answer useful?  Yes

Srinivas reddy modugu

  • Oct 13th, 2005
 

This is an final variable , to that veriable we can't assign null value. it will give u the complation error.

  Was this answer useful?  Yes

Ravi Kumar

  • Oct 17th, 2005
 

this - It is a Final variable

FInal variables can't be modified.

  Was this answer useful?  Yes

Devidas Sonawane

  • Oct 25th, 2005
 

Left hand side of = must be a variable and not a keywords and this- is a keywords that's compile-time error.

  Was this answer useful?  Yes

debu

  • Jun 6th, 2006
 

if u know that dont go through this site.

  Was this answer useful?  Yes

ashokkumar

  • Jan 25th, 2007
 

[root@tm1 classes]# javac -d . ../../../src/com/tm/slynx/util/AuditLogBean.java../../../src/com/tm/slynx/util/AuditLogBean.java:47: cannot assign a value to final variable thisthis = null;^1 error

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions