ravi keshri

Greenhorn
+ Follow
since Jun 30, 2010
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 ravi keshri

hiiiiiiiiiii friend At first i want to thank you to raising this topic ..........
I CAN CLEAR YOU CONFUSION.........
AT --------int x=14L;
this line is right no problem as we know
but when we call a method(short x) with value method(7) then our parameter is 7 which is int .At first jvm search method with parameter int jvm not found then jvm try to match but by widening,boxing,var-args its not found so,it gives compile error and here is not the assigment here is used polymorphism
HAVE A GOOD DAY...............
hiiiiiii sandra.
i think you have to know the diffrence between poll() and peek() methd .
peek() method retrive header of the queue and only retrive not remove.
poll() method retrive and remove header of queue
HAVE A GOOD DAY
hiiiii sudhakar
i think for any object which is eligible for garbage collection the condition is that there should no refercence varible exist or by any way we cannot access that object.
in your question you can see after line 10 one object is eligible for gc.
thanks......have a good day.