Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SCJP 1.5 - Procedure for registration.

 
Niara Bhonde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

COuld someone let me know what is the procedure to register for the SCJP1.5 certification?
Can registration be done online on the sun's website or do we have to get a voucher from the local prometric centre?

Thanks in advance!

Niara
 
Phani Burra
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to get a voucher from Sun's site and then register for the exam in the prometric site using this voucher.
 
Krishna Srinivasan
Ranch Hand
Posts: 1874
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

You can get the voucher from any of the authorised prometric centers.
www.prometric.com/
 
Niara Bhonde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks much!
I will be getting the voucher in a day or two.

Could you also help me on this bit?
When I run the following code, I get a "illegal start of expression" error at line 5:

1.class chk11
2.{
3.public static void main(String[] args)
4.{
5.private int[] y = new int [1];
6.System.out.println(y[0]);
7.}
8.}

I don't see what the error is.Can someone help?

Thanks in advance.
Niara.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15484
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't make a local variable private.
 
Lucy Smith
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The array you are defining is a local (declaring within the method). Local variables cannot have any access modifiers (public, private, protected). I believe only "final" is allowed on a local variable. Remove 'private' from your code and it should work fine.
 
Niara Bhonde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jesper.
 
Niara Bhonde
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Lucy!

I did try using final, and it works!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic