shweta pande

Greenhorn
+ Follow
since Sep 21, 2007
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 shweta pande

hi
In switch statements,case declarations must be final values.We can only use int,char and short variables in case declarations and they must be declared as final keyword.

eg. if you put only 6 instead of choice>6,it 'll compile.


shweta
16 years ago
I am very very very happy today.I wrote exam in today morning and passed exam with 75%.
I really would like to thank all of java rancher and the COOL and AWESOME site which helped me a lot.
Thank you very much.
Shweta
16 years ago
hi

Here " q" is a final variable and when it is assigned by the value 1,how come it is blank variable.And final variables can't be reassigned as they are final but in 1st constructer i=1 and in second constructer we are assinging i =x(i.e whatever the x value is,may be 2,3,4..)though i=1 already so it is opposing the final's rules.
please explain.
shweta
congratulation
can you please tell me the whizlab free mock exam site for scjp 1.4
i am searching it but not getting the exact site for mock exam.
thanks in advance
16 years ago
hi
i just want to know that how many attempts i can give with one vouture?
can anybody tell me the details of this exam?
can you explain autoboxing please,i don't know this concept.
shweta
can you please give me the example where two ref.variables are compared with == operater and giving true value.
shweta
thank you very much for the help.
Thanks Henry
== operater is used for ref. variables and equals() method is used for objects.Right?
But in the given example == is used for objects rather than ref. variables.
ref. variables means whatever is given in front of class name.Right?
eg.
Double d=new Double();

here "d" is ref variable and new Double is actual Object.Right?
so when we use == for objects,it should give a error rather that giving any answer.(please see the first example)Can you explain this?
Hi
I am Shweta.I want to give scjp 1.5 but i don't know the syllabus for this.
Can anybody tell me the correct syllabus.I am already preparing for scjp1.4 so which extra chapters are included in 1.5 version.
thanks in advance.
Thanks for the reply but still there is a query.
In 1st and 2nd example,every thing is same so why it is giving "False"answer?
shweta
: hiii,
i have some doubts abt == n equals method.Here are some examples given below.
i m not able to understand the answers,can anyone help me out..



if( new Boolean("true") == new Boolean("true"))
2: System.out.println("True");
3: else
4: System.out.println("False");

Ans---False




1: Double a = new Double(Double.NaN);
2: Double b = new Double(Double.NaN);
3:
4: if( Double.NaN == Double.NaN )
5: System.out.println("True");
6: else
7: System.out.println("False");
8:
9: if( a.equals(b) )
10: System.out.println("True");
11: else
12: System.out.println("False");


Ans--False
True

it is quite confusing to differentiat between these two operations.

shweta