how to use this key word in java programming?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / rakesh
Keyword can not be used as identifiers in your programs.
| Is This Answer Correct ? | 5 Yes | 4 No |
What is object data type?
How do you convert bytes to character in java?
What is array initialization in java?
if i have one string class then how can you achive this class functionality of this class?
What is Major and importance difference between for and foreach loop ?
What is a singleton puppy?
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?
Can you have an inner class inside a method and what variables can you access?
Definition for connection pooling?
What is the size of int in 64-bit jvm?
What is the difference between public, private, protected, and friend access?
I need help please send me reply: Write a program "if given a string like 'HAT', the combination's returned should be like ATH,THA,TAH in java"?