Welcome To The FosterZen Answers
Consider the following code:
class Demo{
public static void main(String args[ ]){
Test ob1 = new Test(); // Line 1
Test ob2 = new Test(); //Line 2
Test ob3 = ob1; // Line 3
ob2 = ob1; // Line 4
ob1 = null; // Line 5
/* Some More Code */
}
}
After execution of the Line 5, how many object(s) is/are available for the garbage collector to de-allocate the memory? Assume that class Test is already declared.
18 February 2013 , 05:15 A.M Unanswered Answers This Question
What wud the OUTPUT? plz Explain !
class Demo{
public int varOne=100;
public float varTwo=2.0f;
public void myMethod(){
int varThree=(varTwo + varOne)/2;
System.out.println("varThree:"+varThree);
}
public static void main(String args[]){
Demo obj=new Demo();
obj.myMethod();
}
}
18 February 2013 , 05:14 A.M Unanswered Answers This Question
What will happen here?
for( ; ; )
{
cout<<"*";
}
07 October 2012 , 03:05 A.M 2 answers Answers This Question
solve this & give the logic-0,1,1,1,-1,-1,-3,?
04 October 2012 , 08:52 A.M 3 answers Answers This Question
What is device driver?
26 September 2012 , 04:35 A.M 2 answers Answers This Question
How to get the OS information in Linux?
22 September 2012 , 07:27 A.M 2 answers Answers This Question
my pen drive showing message 'write proteted',tried formating using cmd also but can't help.
wat ot do?
20 September 2012 , 07:55 A.M 2 answers Answers This Question
administrator...plz start a forum for discussion..queries regarding what else to do during college period..and rope in some really gud seniors who have had wonderful career..and they really knw things in depth... and make it for evry branch..because that wud be more beneficial..anything like gre,gmat,cat,upsc...ppl are having lots of question and really need a good guidance..plz start a forum for this...
17 June 2012 , 05:45 A.M 2 answers Answers This Question
25 May 2012 , 01:51 A.M 2 answers Answers This Question
21 May 2012 , 05:50 A.M 1 answers Answers This Question
Good tutorial site I want some hacking software s name to hack accounts and id. As it can run in background of computer and when user type any text in browser then it will continuously make its text file and send to the hacker given email id
16 May 2012 , 05:30 A.M 2 answers Answers This Question
I need to embed a media player in a web page to play audio and video files. can any one suggest me any good media player for website?
13 May 2012 , 07:12 A.M 1 answers Answers This Question


