Get Update on recent Technology & Programming

Sunday, 5 November 2017

List Of All Java Keywords

Posted by   on Pinterest

  1. abstract - It specifies that the a class or method will be implemented later in a subclass.
  2. assert - It signifies an assertion statement.
  3. boolean - It is data type that can hold True or False values only.
  4. break - It is a control statement for breaking out of loops.
  5. byte - It is data type that can hold 8-bit data values.
  6. byvalue - It is reserved for future use.
  7. case - It is used in the switch statements  to mark block of text
  8. cast - It is reserved for future use.
  9. catch - It catches exception generated by try statements.
  10. char - It is a data type that can hold unsigned 16-bit Unicode characters.
  11. class - It declare a class
  12. const - It is reserved for future use.
  13. continue - It send control back outside a loop.
  14. default - It specifies the default block of code in a switch statement.
  15.  do - It starts do-while loop
  16. double - It is data type that can hold 64-bit floating point numbers
  17. else - It indicates alternative branches in an if statements
  18. enum - It declares enumerated data type variables
  19. extends - It indicated that class is derived from another class or an interface is derived from another interface.
  20. false - It indicates one of the two permissible values for a boolean variable.
  21. final - It indicates that a variable holds a constant value or that a method will not be overridden.
  22. finally - It indicates a block of code in a try-catch structure that will always be executed.
  23. float - It is a datatype that holds a 32-bit floating-point number
  24. for - It is used for start for loop
  25. future - It is reserved for future use.
  26. generic - It is reserved for future use.
  27. goto -  It is reserved for future use.
  28. if - It test a true/false expression and branches accordingly
  29. implements - It specifies that a class implements an interface
  30. import - It references other classes
  31. inner - reserved for future use
  32. instanceof - It indicates whether an object is an instance of a specific class or implements a specific interface.
  33. int - It is a data type that can hold a 32-bit signed integer
  34. interface - It declare an interface.
  35. long - It is data type that holds a 64-bit integer
  36. native - It specifies that a method is implemented with native (platform-specific) code
  37. new - It creates new object
  38. null - It indicates that a reference does not refer to anything
  39. operator - It reserved for future use.
  40. outer - It reserved for future use.
  41. package - It declare a java package 
  42. private - It is an access specifier indicating that a method or variable may be accessed only in the class it's declared in
  43. protected - It is an access specifier indicating that a method or variable may only the accessed in the class it has declared (or a subclass of the class it has declared in or other classes in the same package )
  44. public - It is access specifier used for classes , interface , methods , and the variables indicating that an item is accessible throughout the application ( or where the class that defines it is accessible)
  45. rest - It is reserved for future use
  46. return - It send a control and possibly a return value back from a called method
  47. short - It is a data type that can hold a 16-bit integer.
  48. static - It indicates that a variable or method is class method (rather than being limited to one particular object)
  49. strictfp - It restricts the precision and rounding of floating-point numbers.
  50. super - It refers to a class's base class (used in a method or class constructor)
  51. switch - It is statement that executes code on the basis of a test value.
  52. synchronized - It specifies critical section or methods in a multithreaded code.
  53. this -It refer to a current object in  a method or constructor
  54. throw - It creates an exception
  55. throws - It indicates what exception may be thrown by a method.
  56. transient - It specifies that is not part of an object's persistent state.
  57. try - It start block of code that will be tested for exceptions
  58. true - It indicates one of the two permissible values for a boolean variable.
  59. var - It reserved for future use.
  60. void - It specifies that a method does not have a return value.
  61. volatile - It indicates that a variables may change asynchronously 
  62. while - It starts a while loop



No comments:
Write comments

Hey, we've just launched a new custom color Blogger template. You'll like it -
Join Our Newsletter