Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Design > Graphic Design

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 12-04-2017, 11:14 PM   #1
sunled
Registered User
 
Join Date: Nov 2017
Posts: 3,786
What is this in java?

What is this in java?
sunled is offline   Reply With Quote

Old 12-07-2017, 02:46 AM   #2
travelowebseo
Registered User
 
Join Date: Sep 2017
Posts: 208
Usage of java this keyword

The 6 usage of java this keyword.

this can be used to refer current class instance variable.
this can be used to invoke current class method (implicitly)
this() can be used to invoke current class constructor.
this can be passed as an argument in the method call.
this can be passed as argument in the constructor call.
this can be used to return the current class instance from the method
travelowebseo is offline   Reply With Quote
Old 12-07-2017, 11:49 PM   #3
arthurperkins
Registered User
 
Join Date: Nov 2017
Location: USA
Posts: 29
This keyword in Java refers to the current class instance which can be used in multiple ways:-
- It can be used to invoke other overloaded constructor of the same class.
- It can be used to invoke a current instant method.
- It can be used to refer the current instance variables of the class.
arthurperkins is offline   Reply With Quote
Old 12-10-2017, 10:45 PM   #4
samaron
Registered User
 
Join Date: Sep 2017
Posts: 314
Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible.
samaron is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Jobs In Pune: A Career and Growth Perspective arshi1586 Java 1 01-19-2017 02:59 PM
10 Avoidable Mistakes Every Beginner Java Developer Makes! arshi1586 Java 0 11-07-2016 11:02 PM
Java Vs C++ : An In Detailed Comparison arshi1586 Java 0 10-25-2016 01:13 AM
Have you ever wondered what is inside a java class file? cianfie Java 6 01-28-2015 10:09 PM
The conclusion provided by the Black Hat Java Script andrebreton2121 Search Engine Optimization 6 10-17-2012 11:06 PM


All times are GMT -7. The time now is 06:01 PM.


Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.