0% found this document useful (0 votes)
21 views

9 - PDFsam - 1. Language Fundamentals

The document discusses keywords and concepts in Java including class, package, import, extends, implements, interface, new, instanceof, super, this, void, final, true, false, null, and enum. It notes that goto is banned in Java and const should be replaced with final. Methods that don't return anything use the void return type. Null is the default value for object references.

Uploaded by

ROHIT JAIN
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

9 - PDFsam - 1. Language Fundamentals

The document discusses keywords and concepts in Java including class, package, import, extends, implements, interface, new, instanceof, super, this, void, final, true, false, null, and enum. It notes that goto is banned in Java and const should be replaced with final. Methods that don't return anything use the void return type. Null is the default value for object references.

Uploaded by

ROHIT JAIN
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

JAVA Means DURGA SIR

1) class
2) package
3) import
4) extends
5) implements
6) interface

Object related keywords:(4)


1) new
2) instanceof
3) super
4) this

Void return type keyword:

If a method won't return anything compulsory that method should be declared with the
void return type in java but it is optional in C++.
1) void

Unused keywords:

goto: Create several problems in old languages and hence it is banned in java.
Const: Use final instead of this.
By mistake if we are using these keywords in our program we will get compile time
error.

Reserved literals:
1) true values for boolean data type.
2) false
3) null----------------- default value for object reference.

Enum:

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

You might also like