Rahul mir

Ranch Hand
+ Follow
since Oct 31, 2012
Rahul likes ...
Eclipse IDE Spring Java
Master of Computer Application.
Worked on java web Services, Android platform,Microsoft C# and SharePoint server, EXTJS javascript.
Currently working on integration of java application with Amazon EC2.
Bangalore, India
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rahul mir

Prajakta Acharya wrote:I guess its 3 because c2,c3 and c1 point to null after call to go method.

c3 is not referring any Object, after go() method call it holds null value, and c2 reference is not loosing there object so c2 is not eligible for GC. c1 = null, it is ok .. it will go for GC.
This question is from K&B SCJP book page no. 269.

When // doStuff is reached, how many objects are eligible for GC?

from my point of view there is only 1 object is eligible for GC, c1. But the explanation given in Book i am not getting.
Books explanation : Only one CardBoard object (c1) is eligible, but it has an associated Short wrapper object that is also eligible..
Please someone explain me ...
please someone explain about newInstance() method.
Ok, got it.. here equals method try to find the value of primitive type variable, from it's reference, that's why dereferenced error came..

ya, we can't call method on primitive .. but in error message, float cannot be dereferenced.. dereferenced thing i am not getting.
please someone explane the error :
Error: float cannot be dereferenced, in the following code.

Encapsulation refers to the bundling of data with the methods that operate on that data.
Kathy sierra 6 is good .
In Java programming Generic and Collection play a very important role. Generic is introduce in J2SE5. A common use of Generic is when using a Java Collection that can hold objects of any type, to specify the specific type of object stored in it.
you first start with collection and then approach for Generic.
these links are good to start learning with generic and collection.

You can also refer O'Reilly Java Generic and Collection book http://shop.oreilly.com/product/9780596527754.do.

Start() starts the thread by calling its run() method.
Here, after start method call print statement will Print "Begin", after that compiler go for run() method, Thread is still not started, so a.join() will execute after run() method and the final result will be "BeginRunEnd"
CX-310-065 (SCJP) is now 1Z0-851 (OCP JP), there is no need to do OCP JA for Java 6 SE edition.
If you want to go for Java 7 edition certification, First you have to complete Associate Exam.

7 years ago
Congrats .. :-)
7 years ago
Try enthuware testing simulator http://enthuware.com/ , it have really good collection of questions.