• 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

SCP2 v1.4 Exam passed with 81%

 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I just passed the exam and want to share some experience:
- You should have a good knowledge of Post- / Pre increment operators i. e. i++ and ++i.

Assertions:
There were two questions regarding assertions that involved the fact that
assertions are not automatically but typically enabled during test of a program
and that it is possible to enable/disable assertions on package AND class level.
Threads:
There were a lot of questions regarding Threads and object lock with
„synchronized“ and the effects of „wait and notify“.
There were programs which started a new thread parallel to the main thread
so that main thread was competing with new thread and the output was impredictable
There was one thread with a synchronized run() method so that only one thread could
access the coding in the run method. Therefore it is assured that the run method is passed
completeley as a sequence by the current thread.
There was another program without synchronized run() method so that two threads could
share the coding in the run() method at the same time:

1. Abstract class and Interface
An abstract class can have methods with body and methods without body.
Those without body have to be declared as abstract.
When a class has a method without body, this method must be declared as
abstract and the whole class has to be declared as abstract.
An interface can only define methods with public or no access modifier.
Other modifiers or static or final are not allowed.
EQALS + HASHCODE
- The hashCode() returns the same value for two objects. The equals() method MIGHT return „true“ but
it MUSTN‘T return true.
- If two objects are equal the hashCode must return the same value.

Bye, Bye,
Thomas
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nice shot Thomas
 
Enthuware Software Support
Posts: 4810
52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations, Thomas. Please do post your scores here.
 
Ranch Hand
Posts: 513
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations!
 
Ranch Hand
Posts: 366
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congrats Thomas on a nice score
Sri
 
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations Thomas!
reply
    Bookmark Topic Watch Topic
  • New Topic