Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Java Beginners Useofthisoperator

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

26 comments so far (post your own) View All Comments Latest 10 Comments:

your service is useful for me
thankyou very much and also congrate for your service
and once again thankyou

Posted by rajasekaren on Wednesday, 10.27.10 @ 22:08pm | #100521

Is it necessary to use this keyword to implement Mehod overriding and why?

Posted by Neha on Thursday, 09.30.10 @ 20:09pm | #99973

This was very helpful to clear up my picture of the 'this' keyword concept.
Thanks

Posted by Phill on Thursday, 09.30.10 @ 19:41pm | #99971

it was helpful. thanks.

Posted by Rajesh kumar on Sunday, 09.19.10 @ 22:00pm | #99694

better.............
i want to core and advance java.

Posted by rituraj singh on Sunday, 08.29.10 @ 07:53am | #99246

class Clerk extends Employee
{
String Grade;
public Clerk(int e_no,String e_name,double e_sal,String e_Grade)
{
super(e_no,e_name,e_sal);//inherits from the parent class Employee
Grade=e_Grade;
this.set_Grade(e_Grade);
}

String set_Grade(String e_Grade)
{
this.Grade=e_Grade;

}

String get_Grade()
{
retun this.Grade;
}


public void display()
{
super.display();
System.out.println("Grade: " + this.Grade);
}

}

class PaySlip
{
public static void main(String args[])
{

Employee c1=new Clerk(76,"John",12000.50,"Grade1");

c1.display();
}
}

Can anyone please tell me whats wrong with this code?I have note written the parent class here.But I have it in my program.
An error is displayed when I compile this saying "Not a statement
return this.Grade;

Posted by Chapzzz on Friday, 08.13.10 @ 00:35am | #98882

give examples for object class

Posted by vidya on Friday, 07.16.10 @ 13:52pm | #98230

improve by giving more examples

Posted by sds on Thursday, 03.18.10 @ 13:38pm | #95655

source code

Posted by Pradeep on Sunday, 01.31.10 @ 01:03am | #94467

thanks to help me to understan the this keyword

Posted by kiran on Tuesday, 01.26.10 @ 12:05pm | #94324

find out the presentation of key word this and swtich in java

Posted by zubair on Saturday, 01.2.10 @ 12:11pm | #93741

we can give more about this
this information is very small

Posted by saikiran on Friday, 10.9.09 @ 16:09pm | #91609

this program is not so effective

Posted by abhinav gupta on Wednesday, 10.7.09 @ 18:59pm | #91521

here you have given very simplest and easy definition for us.

Posted by vitthal on Monday, 08.31.09 @ 12:38pm | #90448

program in this keyword

Posted by vijay kumar.thota on Monday, 05.4.09 @ 16:50pm | #87376

program in this keyword

Posted by vijay kumar.thota on Monday, 05.4.09 @ 16:47pm | #87375

I haven't been able to understand this for the longest time. Your example made me understand it in less than a minute. Thank You.

Posted by Airyie on Saturday, 04.25.09 @ 19:14pm | #87139

It is excellent!

Posted by khalid on Saturday, 03.7.09 @ 08:34am | #85593

it is useful for fresher easy to learn thanks sir

Posted by venu on Wednesday, 02.18.09 @ 23:01pm | #84998

Its very nice notes to me. i understood this concept.
thank u

Posted by saravanan on Saturday, 11.29.08 @ 03:51am | #82170

yea it also helped me, i ve been searching for this for hours lol , and u gave it to us in a nut shell

Posted by The on Tuesday, 11.18.08 @ 21:14pm | #81797

Your example is really beneficial for beginners like me.

Posted by jujahar on Friday, 01.25.08 @ 14:29pm | #46114

Why to use this?

Posted by nilam shaikh on Saturday, 01.5.08 @ 16:29pm | #44567

plz could u explain me wt tdoes the below written statement mean

import java.this.*;

Posted by sana fatima on Monday, 11.12.07 @ 19:04pm | #36979

what does this statement mean
import java.this.*;

Posted by sana fatima on Monday, 11.12.07 @ 19:02pm | #36978

Thanks ... for the help . It was really precise and useful.

Posted by Avinash on Wednesday, 04.4.07 @ 23:55pm | #13356

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright 2007. All rights reserved.