PDA

View Full Version : Declarations and Access Control


  1. What is an Access Specifier or Modifier ?
  2. What are the Access Specifiers in Java ?
  3. Explain Access Specifiers in Java ?
  4. What is the difference between Protected and Default Access Specifier ?
  5. What are the Non-Access Modifiers ?
  6. What are the Rules we have to follow when the time of Class Declaration ?
  7. What is the purpose of Synchronized keyword ?
  8. What does Native Modifier indicates ?
  9. What are the Rules we must follow when we are declaring Local Variables ?
  10. What are the properties of Main() Method ?
  11. What is Transient Variable ?
  12. What is the purpose of Volatile Modifier ?
  13. What are the Things we can't mark as Static ?
  14. Why we should not have instance variable in an Interface ?
  15. Program on merge sort?
  16. What is Enum or Enumerated ?
  17. How Java defines Variables ?
  18. What are the threads will run while running main() method ?
  19. Can access modifiers be applied to local variables?
  20. What is Final Arguments?
  21. What is Enums? How to declare and access them?
  22. When we use abstract classes and when we use interfaces?