how to use this key word in java programming?

Answers were Sorted based on User's Feedback



how to use this key word in java programming?..

Answer / nagireddy.siddaka


my answer is like this
class A{
int a;
int b;
A(){
this.a=12;
this.b=14;
)

Is This Answer Correct ?    17 Yes 3 No

how to use this key word in java programming?..

Answer / kavitha

class abc
{
.int x,y;
.
.
public void setValue(int a,int b)
{
this.x=a;
this.y=b;

}

Is This Answer Correct ?    11 Yes 4 No

how to use this key word in java programming?..

Answer / ali

this keyword is used to referd the current objects.
It is also used call the same class constructor.
In the set of statements this statement is executed first.

Is This Answer Correct ?    8 Yes 1 No

how to use this key word in java programming?..

Answer / kalai

it can be used to call same class constructor.
it refers current object.
example
public class sample{
int k,l;
sample(int k,int l)
{
this.k = k;
this.l = l;
}
}

Is This Answer Correct ?    2 Yes 0 No

how to use this key word in java programming?..

Answer / rakesh

Keyword can not be used as identifiers in your programs.

Is This Answer Correct ?    5 Yes 4 No

how to use this key word in java programming?..

Answer / raaz

i hv lot of doubts in java what to do...???

Is This Answer Correct ?    0 Yes 0 No

how to use this key word in java programming?..

Answer / malini.s

i am having lot of doubts in java
wt to do

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More Core Java Interview Questions

When we give defination of interface method in the class why method must be public???

2 Answers  


Name the packages in JDK?

2 Answers  


What is an argument java?

0 Answers  


What is return used for in java?

0 Answers  


What is difference between length and length() method in java ?

0 Answers  






What is java lang string?

0 Answers  


How objects of a class are created if no constructor is defined in the class?

0 Answers  


How many decimal digits is 64 bit?

0 Answers  


Can a constructor have different name than a class name in java?

0 Answers  


Difference between overloading and overridding?

4 Answers  


What collections you have worked on? Internal working of Hashmap?

1 Answers   Bravura Solutions,


Is final static java?

0 Answers  


Categories