Rajan Narayanan

Greenhorn
+ Follow
since Aug 07, 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 Rajan Narayanan

Hey Deepak, Congratualions!!
I really appreciate ur efforts and looking forward to help others . i'm in desperate to give SCJP but in fear, can u please mail me abt the JLS. it would be gratefu and really appreciated..
email id : rajanorn@yahoo.com
Thanks.
Rajan

[This message has been edited by Rajan Narayanan (edited September 01, 2000).]
Hi all,
Thanx for all ur help !!! i guess i'm 'ving JDK 1.1, that's y i got 9 as output.
lemme try in higher version.
thanx
rajan.
i'm very much sure, Please help me, this is the code which compiled and executed...
public class Ex2 {
public static void main (String args[]) {
int x = 4;
System.out.println("value is :"+((x>4) ?99.99:9));

}
}
the output is value is 9
i donno the reason..whether it varies from compiler to compiler..
Help me out...
thanks
Rajan
Hi!
Thnx for ur reply, but when i compiled and run it shows only 9 not 9.0 , can u explain out the reason.
Thnx
Rajan
public class Ex2 {
public static void main (String args[]) {
int a = 4;
System.out.println("Value is "+
((a>4) ?99.99:9));
}
}
hi all!
In RHE p.no 70 q. 8
public class Ex2 {
public static void main (String args[]) {
int a = 4;
System.out.println("Value is "+
((a>4) ?99.99:9));
}
}
my guess the answer is 9, but it says 9.0, i even tried with my complier it also says 9 only.. whethere it shld be sent into mock erats.
any help!!!
thanks
rajan
Hi
When main method of class try is instantiated, the instance of class is constructed but it refers to the class b not a, so when class be is loaded and constructed u get those values...
hope it clears u little
rajan
Hi guys !
String []a[] = new String[20]20];

it gives me a compile error.. it says expected ';' in the second 20... Lemme clear, whether it's right or wrong....whether it varies frm compiler to compiler i gues i've 1.2 i think.. how to check what compile we 've i downloaded long back now i donno what version i'm having..
thnx for all help..
rajan
hi all!
All Jcplites and future jcplites, am i ready to take up exam.. i'm in thgt of givin the exam but little fear... i tried almost all the mock exams except khalid... when i took marcus green exam.. i got more than 95% but i guess it's basically i'm familiar with the questions.. so i'm in dilemma whether to take up... also took rules round up.. i got 95% but reason those questions also looks familiar to me so i got this marks.. whether i can really take the exams... please advice me.. i thgt of givin it nxt week.
Please i've downloaded the khalid mock but i cldn't run it.. how to do it.. also i gues am havin 1.2 jdk installed will it be the problem for khalid...
Thanks for all ur views and suggestions.
Rajan.
gc
hey Gautam,
Can u explain with some simple example, i guess u're confusing in line 7 and line 8 . i really appreciate if u come out with some simple ex. which will be helpful to us.
Thanks
rajan.
Hi Buddy,
and so called Dedication,i really appreciate ur openness, I strongly believe in onething in my life, HARDWORK NEVER FAILS, so keep up the good work, better late than never.
cheers
Rajan
hey Manila,
What Ajith says is exactly write, but for the novice users like studying java for the Certification is not that possible to write codes so what u can do is study ur weak portions couple of times or else from some other book u may end up with little clear.. that's what i did.
Cheers
Rajan
Congrats Buddy,
That was a great performance, really appreciated ur level of confidence of not reviewing back.... amazed.
i'm the one among the JCPlites looking towards my exam it wld be great if u came forward and send ur notes to my id rajanorn@yahoo.com, which wld be helpful to improve the techniques.
Cheers & Thanx
Rajan
Hi Gopi!
You are right, it's weird answers given in the book.
i checked with the output.
for 2nd question is C only. First Q it's obvious...
cheers
Rajan
23 years ago
Hi J'pros,
i'd dbt in Inner class, i was taking one mock exam, the question abt inner class abt the scope of variables..which are the variables can be placed in place XX, my answer is ID and nn but to my surprise name is also in the answer list.. when i went thru RHE it says if a inner class is defined inside a method of a outer class only variables accessible is if it's marked as FINAL then how name is accessible.
Any explanation is highly appreciated.
public class Outer{
private static final int ID = 5;
private String name ;
public voic methodA(final int nn){
int serialIN = 22;
class Inner{
void showresult(){ //Here the parantesis is other way like this way }first of it's printing mistake..
System.out.println("Rslt="+XX);
}
}
new.inner.showresult();
}
}