Win a copy of Spring Boot in Practice this week in the Spring forum!

madhu kumar

Greenhorn
+ Follow
since Jan 05, 2001
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 madhu kumar

Hi,
try mock exams on http://www.anilbachi.8m.com also for objective wise mocks
Madhu
Hi moderators,
can I use any html codes here to make my post look good.
can u help me.
thankyou.
Hi tom,
Is it worth enough to buy it with such huge money???
Madhu
Hi all,
the answer is 42
Thanks
hi all, this question is from http://www.javacross.com/resources/scjp please help me with the solution.
Q].Why is member class preferrable to a noted toplevel class
a].member classes are more efficient and result in faster programs
b].member classes can include other nested top level classes
c].member classes can access private fields of the enclosing class
d].none
Thanks in advance
Hi Noel,
It is worth enough to get JQ+. I dont know about others.
Regards
madhu
Hi paul,
I have made changes to the code. There was a missing }
Thanks.
Hi all,
the following is a question from http://www.anilbachi.8m.com please tell me what is the solution!
Q].What is the result of compiling and running the following
class methodA(int i){
class test{
public void methodA(int i){
System.out.println(i);}
public int methodA(int i){
System.out.println(i+1);}
public static void main(String args[]){
test X=new test();
X.methodA(5);
}
}
}
a).The program compiles and prints 5
b).The program compiles and prints 6
c).the program gives a runtime exception because it doesnot find the method Test.methodA(int)
d).The program gives a compilation error because methodA is defined twice in class Test.
Thanks in advance
[This message has been edited by madhu kumar (edited February 06, 2001).]
hi this question is from http://www.anilbachi.8m.com .
Please help me with solution.
Q}State the output of the following code
public class short{
public static void main(String args()){
int t=0;
boolean t=true;
boolean f=false,b;
b=(t | | ((i++) ==0));
b=(f | | ((i+=2)>0));
System.out.println(i);
}}
a).0
b).1
c).2
d).3
I think the answer is 2. Am I right. Please help me.
Hi Noel,
I have mailed to the support team, they replied that the site is under construction, also 3 levels of online simulations will be available in a few days also they are intriducing a new cbt known as probe learning system and it seems to be promising
enjoy!
Hi,
this is a query for passing of object references as argument and passing a variable.
look at the following code[quoted from rhe]
/*******code1******/
Button btn;
btn=new Button("Good");
replacer(btn);
System.out.println("btn.getLabel());
public void replacer(Button replaceMe){
replaceMe=new Button("Evil");
}
/******output is Good
/*******code2******/
TextField tf;
tf=new TextField("Yin");
changer(tf);
System.out.println(tf.getLabel);
public void changer(TextField changeMe){
changeMe.setText("Yang");
}
/*****output is Yang
I understand that methods cannot change the original values of the arguments since they are only their references but how come
the textfield in code2 is changed!!
Iam confused!!!
Thanx all I have come to know some good concepts.