0% found this document useful (0 votes)
23 views1 page

10 - PDFsam - 1. Language Fundamentals

The document discusses Java keywords and reserved words. It introduces the enum keyword which was added in Java 1.5 to define a group of named constants. It then lists conclusions about Java keywords, such as all being lowercase and newer keywords like strictfp and assert. It also lists examples of valid and invalid Java reserved word lists.

Uploaded by

ROHIT JAIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views1 page

10 - PDFsam - 1. Language Fundamentals

The document discusses Java keywords and reserved words. It introduces the enum keyword which was added in Java 1.5 to define a group of named constants. It then lists conclusions about Java keywords, such as all being lowercase and newer keywords like strictfp and assert. It also lists examples of valid and invalid Java reserved word lists.

Uploaded by

ROHIT JAIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

JAVA Means DURGA SIR

This keyword introduced in 1.5v to define a group of named constants


Example:
enum Beer
{
KF, RC, KO, FO;
}

Conclusions :

1. All reserved words in java contain only lowercase alphabet symbols.


2. New keywords in java are:
3. strictfp-----------1.2v
4. assert-------------1.4v
5. enum--------------1.5v
6. In java we have only new keyword but not delete because destruction of useless
objects is the responsibility of Garbage Collection.
7. instanceof but not instanceOf
8. strictfp but not strictFp
9. const but not Constant
10. syncronized but not syncronize
11. extends but not extend
12. implements but not implement
13. import but not imports
14. int but not Int
15.

Which of the following list contains only java reserved words ?

1. final, finally, finalize (invalid) //here finalize is a method in Object class.


2. throw, throws, thrown(invalid) //thrown is not available in java
3. break, continue, return, exit(invalid) //exit is not reserved keyword
4. goto, constant(invalid) //here constant is not reserved keyword
5. byte, short, Integer, long(invalid) //here Integer is a wrapper class
6. extends, implements, imports(invalid) //imports keyword is not available in java

nd
DURGASOFT, # 202,2 Floor,HUDA Maitrivanam,Ameerpet, Hyderabad - 500038,
10  040 – 64 51 27 86, 80 96 96 96 96, 9246212143 | www.durgasoft.com

You might also like