Computer Knowledge

Software Development and Management

3,064 Questions

Software development and management focuses on the system development life cycle, enterprise architecture, and configuration management. It tests your familiarity with system analysis, design models, and IT project planning. This subject is essential for specialist and banking officer scale examinations.

System analysis and designSoftware development life cycleConfiguration managementEnterprise architectureObject oriented design

Software Development and Management Questions

Multiple choice
  1. Synchronize the run method.

  2. Wrap a synchronize(this) around the call to f.increase().

  3. The existing code will cause a runtime exception.

  4. Synchronize the increase() method

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Option D is correct because synchronizing the code that actually does the increase will protect the code from being accessed by more than one thread at a time. Option A is incorrect because synchronizing the run() method would stop other threads from running the run() method (a bad idea) but still would not prevent other threads with other runnables from accessing the increase() method. Option B is incorrect for virtually the same reason as A—synchronizing the code that calls the increase() method does not prevent other code from calling the increase()method.