Translate

Friday, March 27, 2020

Types of Methods and Classes in Java

Java Contains 22 types of Methods...
{

  1.  instance ()
  2. static()
  3. normal()
  4. abstract()
  5. accessor()
  6. mutator()
  7. overridden ()
  8. overriding()
  9. final()
  10. native()
  11. strictfp()
  12. private()
  13. public()
  14. protected()
  15. default()
  16. instanceFactory()
  17. staticFactory()
  18. synchronized()
  19. nonsynchronized()
  20. inLine()
  21. patter()
  22. callBack()
}




Basic Types of Classes in Java...
{

  1. normal class
  2. abstract class
  3. final class
  4. strictfp class
  5. immutable class
  6. mutable class
  7. public class
  8. default class
  9. singleTon class

}

No comments:

Post a Comment

Constructor in Java

Rules of Constructor Class name and constructor name must be same Constructor is able to take parameters Constructor is not allowed re...