Thursday 17 August 2017

Java all keywords easy to understand


java support 50 keywords to perform different operation in java program they are

1] Package creation and usage (2)
      1.package
      2.import


2] class creation (3)
      3.class
      4.interface
      5.enum

3] datatypes and return types (8+1) 
     6.byte
     7.short     
     8.int
     9.long
     10.float
     11.double
     12.char
     13.boolean
     14.void

4]memory allocation (2)
      static
     15.new

5]control flow statement (11)
 i) conditional(5)
       16.if
       17.else
       18.switch
       19.case
       20.default
ii) loop(3)
       21.while
       22.do
       23.for
iii) branching/transfering (3)
       24.break
       25.continue
       26.return

6] Accessibility modifiers (4)
     27. private
     <default>
     28.protected
     29.public

7]execution level modifiers (8)
     30.static
     31.final
     32.abstract
     33.native
     34.transient
     35.volatile
     36.syncronized
     37.strictfp

8]Inheritance relationship (2)
     38.extends
     39.implements

9]representing objects & its members (3)
     40.this
     41.super
     42.instenceof

10] Exception handling (5+1)
     43.throw
     44.throws
     45.try
     46.catch
     47.finally
     48.assert

11] unimplemented /unused keywords (2)
     49.goto
     50.const

No comments:

Post a Comment