Mukti Bajaj

Ranch Hand
+ Follow
since Dec 11, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mukti Bajaj

Hi,
Check out this link....
http://www.hal-pc.org/%7Eclyndes/computer-arithmetic.html#COMPUTER-TWOS
The explanation given is very easy and will help you to clear you doubts.
HTPs
Mukti
24 years ago
Hi Vinay,
Contratulations!!
All the best for your furture.
Mukti
24 years ago
Hi Manoj & Shailendra,
Well, I will be looking out for a job as a Java Programmer.And then within six months will target for Developer Exam also.Lets see how things turn out for me.I hope it will be good Everbody does.....
And yes...I didn't get any questions on applet or html.I am not sure about these type of questions being asked for others.But, I guess they might ask only basics.Please do confirm....
from other SCJP also.
Thanks.
Mukti

[This message has been edited by Mukti Bajaj (edited February 08, 2001).]
24 years ago
Hi,
With the blessings of god, my parents and my efforts,
Even I have cleared the certification on Monday...5th Feb.
Exam was not too tough.... and not to easy.
Only thing I would like to say is understanding of all the concepts very well is important along with lot of practice of coding.
I want to thank everyone you have helped me.... directly or indirectly (by making such useful websites and product like JQPlus). JQPlus have been a great help. I do appreciate their quick reply for all my queries. Which had been a great help for an individual like me, who is very new to the programming language.
Thanks once again.
Mukti
24 years ago
Hi Naveen,
can you please forward the Khalid mock answers to me as well.
my email id: [email protected]
Thanks is advance.
Mukti
Hi guys,
I guess there is no error,
As the question is,"will the code below print, false"
So the answer has to be false....as you all know that, the code will print "true".
NO ERROR....it's the way you read the question
Mukti
24 years ago
Hi,
Well, according to me neither of options work.
I hope,someone can explain.
Mukti

24 years ago
Hi,
Outerclass.InnerClass inner = new OuterClass().new InnerClass();.......This the correct way to create instance of non-static inner class.
Outerclass.InnerClass inner = new OuterClass.InnerClass();.......This the correct way to create instance of static inner class.
Mukti
Hi,
There is no size value mentioned.
24 years ago
Hi,
Consider the code below:
arr[0] = new int[4];
arr[1] = new int[3];
arr[2] = new int[2];
arr[3] = new int[1];
for( int n = 0; n < 4; n++ )
System.out.println( /* what goes here? */ );
Which statement below, when inserted as the body of the for loop, would print the number of values in each row?
a) arr[n].length();
b) arr.size;
c) arr.size -1;
d) arr[n][size];
e) arr[n].length;
Well, I am unable to get it right...can someone help.
Thanks.
Mukti
24 years ago
Hi,
int[][] makeArray( int size)
{ int[][] triArray = new int[size] [];
int val=1;
for( int i = 0; i < triArray.length; i++ )
{ triArray[i] = new int[i+1];
for( int j=0; j < triArray[i].length; j++ )
{ triArray[i][j] = val++;
}
}
return triArray;
}
a) 1 2 3 4
5 6 7
8 9 10
b) 1 4 9 16
c) 1 2 3 4
d) 1 2 3 4
5 6 7 8
9 10 11 12
13 14 15 16
e) 1 2 3
4 5 6
7 8 9 10
What can be the possible answer of the above code??
Can somebody explain.
Thanks.
Mukti
24 years ago
Hi,
public class TestOuter
{
class NonStaticInner
{
final static int i = 10;//compiles fine with FINAL STATIC members
}
}
Mukti
Hi,
Q)You are designing an application to recommend dog breeds to potential pet owners. To maximize the advantage of working in an object-oriented language, you have created a Dog class, which will be extended by classes representing different kinds of dogs. The following code fragment shows the class declaration and all of the instance variables in the Dog class: 1. public class Dog extends Object { 2. float avgWeight; 3. float avgLifespan; 4. String breedName; Which of the following would be reasonable variable declarations for the SportingDog class, which extends Dog? [Check all correct answers]
A) private float avgWeight ;
B) private Dog theDog ;
C) String[] hunts ;
D) String breedName ;
Answer Given : C
What can be the possible answer??
Mukti
24 years ago