GoConqr has a new look! Let us know what you think.

Quiz

Java quiz

Misael Pinedo 70 questions

Take the quiz

Questions in this quiz (70)

  1. 1Select the different types of access modifiers in Java
    1. APrivate
    2. BProtected
    3. CDefault
    4. DPublic
    5. ERestricted
    6. FGlobal
  2. 2The FINAL keyword can be assigned to
    1. AClass level variable
    2. Bmethod
    3. Cclass
    4. DObjects
    5. EPackages
  3. 3What happens if the FINAL word is assiged to a variable?
    1. AIt behaves like a constant
    2. BThe value can change
  4. 4What happens if the FINAL keyword is assigned to a method
    1. AIt cannot be overriden in its child class
    2. BIt cannot be overriden in its child class but it can be overriden if the child class has a child class that implements it
  5. 5How many times a final object can be instantiated?
    1. A1
    2. B2
    3. CThere is no limit
  6. 6What is synchronized keyword?
    1. AIs used to prevent concurrency, locks the objects to prevent the race condition between threads
    2. BIf used in a variable the permits that the value gets stored in the main memory to be used and it gets modified for every thread using it by modifying the local variable on each thread
  7. 7What is the purpose of the transient variable?
    1. ATo define the properties of the class that does not need to be serialized
    2. BTo define properties of the class that needs to be serialized
  8. 8What is the strictfp modifier?
    1. AIt is used with variable only to restrict the floating point calculations and ensures the portability
    2. BIt is a modifier that lets the static variables to be converted to constants
  9. 9Can be used with variables and methods but not with the class
    1. Astatic keyword
    2. Bprivate keyword
  10. 10What is a static variable?
    1. AA variable that shares its stance between multiple objects. And changes done by one object to the variable are reflected in other object
    2. BA variable that cannot be used across methods

Information

Description
Quiz on Java quiz, created by Misael Pinedo on 21/03/2015.
Language
Español
Views
3
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?