Subscribe to Zinmag Tribune
Subscribe to Zinmag Tribune
Subscribe to Zinmag Tribune by mail
6:08 AM Posted by techgeek
keyword section

What is keyword?

Java reserved word which should is not used as variable/class-name (e.g.: break, for, if, while etc)


What is final keyword?

Used before variables for declaring constants

Used before methods for preventing from overriding

Used before class-name for preventing from inheritance


What is static keyword?


Used before variable for defining shared variables

Used before method for defining class-level methods, these methods
can be called without creating objects (e.g.: parseInt method of Integer class)


What is abstract keyword?

Used for creating abstract class, class which doesn't have any instance


What is this keyword?

To call current class variables and current class methods we can use this key word


What is this( )?

Used for calling another constructor of current class



What is super keyword?

To call super class variables and super class methods we can use super key word


What is super( )?

Used for calling of super class constructor and it should be first executable statement in sub class constructor





You can leave a response, or trackback from your own site.

0 Response to " "

Post a Comment

featured-video