Khurram Ajmeri

Greenhorn
+ Follow
since Nov 24, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Khurram Ajmeri

What class must an inner class extends?? :roll:
21 years ago
hello there
this() is used for constructor chaining
for example..if u want to call a single argument constructor from within a zero argument constructor.
class Tiger{
Tiger(){
this(6); //must be the first line of a
} //constructor!

Tiger(int i){
System.out.println("Tiger");
}
}

if u are still confuse please read the book.
21 years ago
what is the difference between static and non static methods? :roll:
22 years ago
please correct
int i=Integer.parseInt("100");
khurram
22 years ago
parseInt method converts string into integer
if u wanna change "100" into integer u should use paeseInt()
method.
int i=parseInt("100");
parseInt method dont work with string like "Hello".
22 years ago
hello there
how does capacity() method in StringBuffer work?
22 years ago