answersLogoWhite

0

What are the keywords in Java?

Updated: 12/16/2022
User Avatar

Cashthoori

Lvl 1
12y ago

Best Answer

Here's a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywords const and goto are reserved, even though they are not currently used. true, false, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs.

abstract

assert***

boolean

break

byte

case

catch

char

class

const*

continue

default

do

double

else

enum****

extends

final

finally

float

for

goto*

if

implements

import

instanceof

int

interface

long

native

new

package

private

protected

public

return

short

static

strictfp**

super

switch

synchronized

this

throw

throws

transient

try

void

volatile

while

* not used

** added in 1.2

*** added in 1.4

**** added in 5.0

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the keywords in Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are the keywords not used in java?

You can find a list of Java keywords in the Wikipedia article "List of Java keywords". These keywords may not be used for variables or other user-defined names.


What are user defined keywords in java?

As far as I know, keywords are part of the implementation of Java, and cannot be defined or redefined.


How many keywords in java 1.6?

As of Java 1.5, there are 50 keywords defined, 48 of which are used (const and goto are unusable keywords).abstractcontinuefornewswitchassertdefaultgotopackagesynchronizedbooleandoifprivatethisbreakdoubleimplementsprotectedthrowbyteelseimportpublicthrowscaseenuminstanceofreturntransientcatchextendsintshorttrycharfinalinterfacestaticvoidclassfinallylongstrictfpvolatileconstfloatnativesuperwhile


What is the case for Java keywords?

uppercase


Are true false and null Java keywords?

True and false are literals(special built-in value) in java and cannot be used as keywords.


Are keywords also known as metadata?

No. Keywords are not called or known as Metadata in Java


What is the meaning of new keyword in java?

There is 48 reserved keywords currently defined in the java language. These keywords, combined with the syntax of the operators and separators,form the definition of the java language. these keywords can't be used as names for a variable,class or method. (chandramohan singh)


Scanf in java?

There is no scanf in Java. It is one of the keywords used in C Programming language


What does the verify keyword do in Java?

"verify" is not a Java keyword. I believe the link, in related links, has the complete list of Java keywords.


What is the return type of finally method in java?

The final and finally keywords have no impact on the return type of a method in Java.


Give some examples of keywords?

Java KeywordsabstractassertbooleanbreakbytecasecatchcharclassconstcontinuedefaultdodoubleelseenumextendsfinalfinallyfloatforgotoifimplementsimportinstanceofintinterfacelongnativenewpackageprivateprotectedpublicreturnshortstaticstrictfpsuperswitchsynchronizedthisthrowthrowstransienttryvoidvolatilewhileThe Java Language Specification makes a special note of the "goto" and "const" keywords:The keywords const and goto are reserved, even though they are not currently used. This may allow a Java compiler to produce better error messages if these C++ keywords incorrectly appear in programs. C++ Keywordsandand_eqasmautobitandbitorboolbreakcasecatchcharclasscomplconstconst_castcontinuedefaultdeletedodoubledynamic_castelseenumexplicitexportexternfalsefloatforfriendgotoifinlineintlongmutablenamespacenewnotnot_eqoperatororor_eqprivateprotectedpublicregisterreinterpret_castreturnshortsignedsizeofstaticstatic_caststructswitchtemplatethisthrowtruetrytypedeftypeidtypenameunionunsignedusingvirtualvoidvolatilewchar_twhilexorxor_eq


Why keywords in java important?

In the Java programming language, a keyword is one of 53 reserved words that have a predefined meaning in the language; because of this, programmers cannot use keywords as names for variables, methods, classes, or as any other identifier.