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

6 - PDFsam - 1. Language Fundamentals

The document discusses Java programming practices for identifiers. It defines an integer variable named after the Runnable interface and prints its value, outputting 10. While using class/interface names as identifiers is legal, it is not considered good practice. It then asks which of the following are valid Java identifiers.

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)
21 views1 page

6 - PDFsam - 1. Language Fundamentals

The document discusses Java programming practices for identifiers. It defines an integer variable named after the Runnable interface and prints its value, outputting 10. While using class/interface names as identifiers is legal, it is not considered good practice. It then asks which of the following are valid Java identifiers.

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

int Runnable=10;
System.out.println(Runnable);
}}
Output:
10

Even though it is legal to use class names and interface names as identifiers but it is not
a good programming practice.

Which of the following are valid java identifiers?

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

You might also like