Keywords in java

 

The word which is pre-defined in the library is called keyword.

It's functionality is also pre-defined.

Keyword can not be used as variable, function name, class name or as any identifier.

Example of keywords are int, float , char , void , main etc

List of keywords in java  :-


abstract

continue

for

new

switch

assert

default

goto

package

synchronized

boolean

do

if

private

this

break

double

implements

protected

throw

byte

else

import

public

throws

case

enum

instanceof

return

transient

catch

extends

int

short

try

char

final

interface

static

void

class

finally

long

strictfp

volatile

const

float

native

super

while

Post a Comment

0 Comments