abhrodip paul

Greenhorn
+ Follow
since Oct 16, 2007
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 abhrodip paul

what is the difference between the instance of a class and the class object
produced by [classname].class.

Thanks
I can also invoke function of the loaded class using the class reference. Am I right ? If I am how that happenes.

Class c = Class.forName("className");
Method m = c.getDeclaredMethod
and then invoke the method

How this works ?

Thanks
One loads the class definition into the JVM, the other creates an instance of the class.

Thanks for the reply.

Can you please elaborate " class definition "? Does the Class.forName creates an object of the class in the memory ? If it not, how we run the function of the loaded class.
Can anyone elaborate on difference between Class.forName and new Object call?

Congrats buddy

can you please tell me what is the best book to refer.

Thanks
Passed SCJP want to go for SCWCD

Can any one please tell me any book name that will be best for Preparation . like K&B book for SCJP.

Thank you very much.
Passed SCJP want to go for SCJD .

Please tell me the book name that i can refer. Is there any book bo K&B like in SCJP1.5.

Thank you very much.
Hi all,
I have passed SCJP 5.0 Successfully. Thanks to all of you guys and this forum for helping me lot. Best of luck to all of you.
14 years ago

Congrats really a great score .
14 years ago
Thanks Anuradha,

Really a good description.
Suppose you have a List of 100 elements. Do you want to retrieve all 100 elements using index method...

that is not true right. So iterator will give you fast retrieving of data from List
implement the interface
i.e
interface q {

}

public class nn implements q{
public static void main(String[] arg) {

q o = new nn();
}
}
In the following code the output could be
1 --- 0,2,4,6,8,10,12,14,
2 --- 0,2,4,6,0,2,4,6,
3 --- 0,0,2,2,4,6,4,6,
4 --- 0,0,2,2,4,4,6,6,
5 --- 0,0,2,4,6,2,4,6,

and many more it could be.

public class Thread1 {
int x = 0;

public class Running implements Runnable {

public void run() {
int count = 0;
for (int i = 0; i < 4; i++) {
count = x;
System.err.print(count + ",");
x = count + 2;
}
}

}

public static void main(String[] a) {
new Thread1().go();
}


private void go() {
Runnable r11 = new Running();
new Thread(r11).start();
new Thread(r11).start();
}
}

This is what Thread is ...
bcoz two threads are created and they are accessing the run method at same time.
Thanks. If any mistake pls Rectify.
Is shifting operator is there in java 1.5 exam?