GSSP-Java GIAC Secure Software Programmer-Java

Loading demo links...

Showing 1–3 of 15 questions

Question 1 (Volume A)

Which of the following statements about a native modifier in Java are true? Each correct answer represents a complete solution. Choose two.

Select all that apply, then click Submit answer.

  • It can be applied to methods and variables.

  • A method with a native modifier must end with a semicolon.

  • It can be applied only to methods.

  • It can be applied only to variables.

  • A separate Java class must be written to provide implementation for a native method.

Question 2 (Volume B)

Mark works as a Programmer for InfoTech Inc. He develops a program that defines a class named Inventory that has an instance variable named NumOfItems. Which of the following properties will be applied by NumOfItems?

Each correct answer represents a complete solution. Choose all that apply.

Select all that apply, then click Submit answer.

  • It will not be visible in Static methods if it passed as a parameter.

  • It will be visible in Static methods if it passed as a parameter.

  • It will be available for all the instance methods of the class.

  • It becomes available for garbage collection if it is no longer in scope.

Question 3 (Volume B)

There are two threads defined in an application named "thread1" and "thread2". Which of the following options can be the direct cause of "thread1" becoming blocked?

Each correct answer represents a complete solution. Choose all that apply.

Select all that apply, then click Submit answer.

  • thread1 attempt to read from a file

  • thread1 executes thread2.sleep(3000)

  • thread2 executes thread1 sleep(3000)

  • thread1 raises its own priority

  • thread1 executes new Thread (someRunnable)