Neena Shah

Greenhorn
+ Follow
since Nov 18, 2000
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 Neena Shah

Hi,
when compiling I tried this way:
c:Stuff:p> javac -d . E1.java
c:Stuff:p> javac -d . E2.java
c:Stuff:p> java p.E2
30
Now I got the answer. I followed a procedure written in one of the java sites.....Can anyone tell me why that works? Is that the way to compile packages?
Thanks
Neena
23 years ago
Hi,
when compiling I tried this way:
c:Stuff > javac -d . E1.java
c:Stuff > javac -d . E2.java
c:Stuff > java p.E2
30
Now I got the answer. I followed a procedure written in one of the java sites.....Can anyone tell me why that works? Is that the way to compile packages?
Thanks
Neena
23 years ago
yes, I did. I compiled E1 first and then E2.
I created a directory called Stuff and then added directory p to it.....
C:\Stuff\p\E1.java
C:\Stuff\p\E2.java
This is the structure...do I need to make any changes to the classpath or something? I set the classpath to C:\Stuff
Thanks
Neena
23 years ago
Hi,
I have two java files:
package p;
public class E1
{
int i=10;
int j=20;
int aSum(int a1, int a2)
{
int result = a1 + a2;
return result;
}
}

package p;
public class E2
{
int i1=10;
int j1=20;
public static void main(String args[])
{
E1 example1 = new E1();
int result = example1.aSum(10,20);
System.out.println(result);
}
}

when I try to compile E2 it says p.E1 not found....why is that?
How do we call a class that is in the same package?

Thanks
neena
23 years ago
Hi,
are java documentation questions also included in the exam?
Thanks
Neena
Hi,
I have two questions:
1. Is "null" a java keyword or a reserved word?
2. when we declare static members in a class, do we need to initialize them explicitly always....or can just leave the compiler to do that by default? if we can leave it for the compiler, can we say final in the statement?
example:
static final int v;
does that mean that the compiler will initialize it to 0 and make it final?
Thanks in advance...
Neena
it's me again...forgot to add my email id : csn40@yahoo.com
Guess I'm really tense and nervous.....
Neena
23 years ago
Hi Archana,
I am planning to take the exam next week, so can you send me the JLS notes...I would really appreciate that.
Thanks in advance
Neena Shah
23 years ago
Hi,
I am taking this exam next week and heard that there are some changes made to it(too late!). My questions are:
1. What is the pass score? 71 or 61?
2. Does this exam state the exact number of responses it expects in a multiple choice?
3. any new topics? I have been studying Barry Boone and the Simon Roberts guide....
Thanks for the help
Neena Shah