Any Time Any Where

test

Breaking

Post Top Ad

Your Ad Spot

Tuesday, September 7, 2021

Keywords in Java

 

Java Keywords

Java keywords are otherwise called held words. Keywords are specific words that go about as a key to a code. These are predefined words by Java so they can't be utilized as a variable or objects name or class name.

1) abstract:

Java abstract keywords is utilized to proclaim a theoretical class. A theoretical class can give the execution of the interface. It can have theoretical and non-unique techniques.

2) extends:

Java extends keyword is utilized to demonstrate that a class is gotten from another class or interface.

3) final:

Java final keyword is utilized to show that a variable holds a consistent worth. It is utilized with a variable. It is utilized to confine the client from refreshing the worth of the variable.

4) finally: 

Java finally keyword demonstrates a square of code in an attempt get structure. This square is constantly executed if a special case is dealt with.

5) implements: 

Java implements keyword is utilized to carry out an interface.

6) import: 

Java import keyword makes classes and interfaces accessible and open to the current source code.

7) interface: 

Java interface keyword is utilized to proclaim an interface. It can have just unique techniques.

8) new: 

Java new keyword used for creating a new keyword in java program.

9) package:

Java package is nothing but more then a way, where we can create our file in different dictionary according to their functionality.

10) return

The java return keyword used for return a method when program is executed.

11) static:

Java static keyword is utilized to demonstrate that a variable or strategy is a class technique. The static keyword in Java is predominantly utilized for memory the executives.

12) super: 

Java super keyword is a reference variable that is utilized to allude to parent class objects. It very well may be utilized to summon the prompt parent class strategy.

13) switch: 

The Java switch keyword contains a switch proclamation that executes code dependent on test esteem. The switch explanation tests the balance of a variable against numerous qualities.

14) this: 

Java this keyword can be utilized to allude the current item in a strategy or constructor.

15) void:

Java void keyword used to specifies that it does not return any value.

No comments:

Post a Comment

Post Top Ad

Your Ad Spot