• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can i use Java7 for scjp6 exam?

 
Greenhorn
Posts: 22
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Which version of java should i supposed to use for scjp6.... i m having java7 installed on my machine but the problem with this version is most of the time i wont get any compile time error due to java 7 new features...like passing string in switch case
 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can force the compile to use java 6 by setting the source flag.

For the exam prep, if you have been using java 7 it's better to go for java 7 exams.
 
Amruta nikam
Greenhorn
Posts: 22
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:You can force the compile to use java 6 by setting the source flag.

For the exam prep, if you have been using java 7 it's better to go for java 7 exams.



i know how to force compiler to use particular version of java in command prompt but how to do it in eclipse IDE.....
anyone please help me.....
 
K. Tsang
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You didn't mentioned Eclipse earlier. Anyway in Eclipse, you can do the same thing. Window -> Preference -> Java -> Compiler

Choose the version from the "Compiler compliance level". You can do the same for each individual project. Just go the the project's settings.
 
Amruta nikam
Greenhorn
Posts: 22
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

K. Tsang wrote:You didn't mentioned Eclipse earlier. Anyway in Eclipse, you can do the same thing. Window -> Preference -> Java -> Compiler

Choose the version from the "Compiler compliance level". You can do the same for each individual project. Just go the the project's settings.



Hey thanks a lot....its working properly now...and thanks for your quick reply....
reply
    Bookmark Topic Watch Topic
  • New Topic