Translate

Friday, March 27, 2020

Java Keyword And 5 main elements of class

Gotovisit51 Keywords of JAVA...

"This keywords are divided into 9 category "

1. DataType  :
  1. byte
  2. short
  3. int 
  4. float
  5. double
  6. long
  7. char
  8. boolean
2. Flow Control Statement
  1. if
  2. else
  3. switch
  4. case
  5. break
  6. while
  7. do
  8. for
  9. continue
  10. default
3. Exception Statement
  1. try
  2. catch
  3. finally
  4. throws
  5. throw
4. Object Level
  1. new
  2. this
  3. super
  4. instanceof
5. Method
  1. void 
  2. return
6. In Java 5
  1. enum
  2. assert
  3. null
7. Unused
  1. goto
  2. const
8. Source File
  1. class
  2. extends
  3. interface
  4. implements
  5. package
  6. import
9. Modifiers 
  1. public 
  2. private
  3. protected
  4. final
  5. static 
  6. abstract
  7. synchronized
  8. strictfp
  9. volatile
  10. transient
  11. native
Total 51....



5 main elements of class

"Class contain Five Elements.."

{
  1. Variable :-visit... 
  2. Methods :-visit...
  3. Construction :-
  4. Instance Block :-
  5. Static Block :-
}

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...