radhika madini

Greenhorn
+ Follow
since Jan 10, 2001
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 radhika madini

Hi,
I am interested in learning EJB.So I downloaded j2sdkee1.3 on win98.
my path settings in autoexe are
set TOMCAT_HOME=c:\tomcat
set JAVA_HOME=c:\jdk1.3
set J2EE_HOME=c:\j2sdkee1.3
SET PATH=C:\JDK1.3\BIN; c:\j2sdkee1.3\bin;%PATH%
set classpath=c:\jdk1.3\lib\tools.jar;c:\j2sdkee1.3\lib\j2ee.jar
set path=%path%;c:\tomcat\bin
Set CLASSPATH=.;%TOMCAT_HOME%\lib\servlet.jar
set classpath=c:\jsdk2.0\lib\jsdk.jar;
For testing
when I type j2ee -verbose on dos prompt it sets the path and displays cursor..
when I type deploytool on dos prompt it is saying that J2EE_HOME is not found.
I need help in running EJB's..
I do not have web logic in my system yet..
please guide me in installing and using J2EE
Thanks
Radhika Madini
Hi,
Thanks for your information...
Radhika
22 years ago
Hi,
I am interested in learning JSP now..I am SCJP2.I know servlets,HTML,Javascript..please tell me which book I have to follow..
Thanks,
Radhika
22 years ago
Hi zheng,
I ran your program and it is changing array value..
From this I came to know that if we assign one array name to other array name like i=j the elements in i are not changed
where as if we assign elements of one array to elements of other array like i[0]=j[0] then elements in array i will be changed..
Am i right in understanding...
radhika
Hi Ajith,
I think u are saying that as we used return stmt ,value of i[0]is changed otherwise not.. but see the simple code below..public class example3 {
int i[] = {0};
public static void main(String args[]) {
int i[] = {1};
change_i(i);
System.out.println(i[0]);
}
public static void change_i(int i[]) {
i[0]=4;
}
}
here in main() method i[0]is 1 right? we are not using any return stmt but just calling change_i() in main()..result is i[0]=4 after calling that method.. value is changed..
I ran this program and it is displaying 4..
I don't know the reason for that..
I think you didn't notice this thing..
can anybody explain me whats happening there..
radhika
Hi all,
In the above prgm i kept return stmt..
without return stmt also it is printing i[0] as 4..
help please...
regards
radhika
Hi Ashwini,
what you said is correct.I know that copy of reference is passed but see the code below.

After compiling and running it is printing i[0] as 4 but not 1..
can anybody say whats the reason for that..
sunil you have to put return stmt as i kept in above prgm with return type as int[] and return stmt inside prgm as return i;..or you can also keep return type as int and return stmt as return i[0].. both will work with out errors..
regards
radhika

[This message has been edited by Ajith Kallambella (edited January 11, 2001).]
Hi Rob,
I changed the prgm as you mentioned and it is working..I got it now..
thanks for your help..
Hi Saravan,
Its ok..Any way now i got it..Thanks you tried to help me..
regards
radhika
23 years ago
Hi Fred,
I tested what u said by assigning y=0 inetially.then it is printing the value assigned inside if{} ie 2.I got your concept..
one more thing is..
is it same for do and while loops also?
23 years ago
Hi Fred,
I tested what u said by assigning y=0 inetially.then it is printing the value assigned inside if{} ie 2.I got your concept..
one more thing is..
is it same for do and while loops also?
Hi everyone,
I have doubt in following prgm.

I ran this program and it is displaying i[0] as 1.
my question is why it is not displaying the value 2 which is obtained by (i=j) stmt.If i keep return stmt in change_i method then it is displaying i[0] as 2.but I don't know the reason of what happeneing there.
can anybody explain me the reason in detail..
Thanks
radhika

[This message has been edited by Ajith Kallambella (edited January 11, 2001).]
Hi Fred,
I ran the program by assigning value for y outside if loop and it is working..
Thanks alot for your help..
Regards
Radhika
23 years ago
Hi Fred,
I ran the program by assigning value for y outside if loop and it is working..
Thanks alot for your help..
Regards
Radhika

Hi Fred Abbot,

Originally posted by Fred Abbot:
since you initalizing Y inside an if()statement it may not be initalized as if the if()is false then Y will never be initalized
this post should be in anothe rthread not here


you mean if we assign values inside if loop those values are not visible outside that loop..
am i correct in this..
23 years ago

Hi Fred Abbot,

Originally posted by Fred Abbot:
since you initalizing Y inside an if()statement it may not be initalized as if the if()is false then Y will never be initalized
this post should be in anothe rthread not here


you mean if we assign values inside if loop those values are not visible outside that loop..
am i correct in this..