As coders, we always need to know the file extension of the file we are working on. This page will show how to do that.
Example File Extensions
File Name
File Extension
Also Called
readme.txt
txt
TXT file
Rectangle.java
java
JAVA file
Rectangle.class
class
CLASS file
Sort.py
py
PY file
Show File Extensions in Windows
Select "View" Tab
Check the "File name extensions" checkbox
Note that we can now see file extensions such as "class, "java", etc.
Quick Demo
Show File Extensions on the MAC
On the MAC, make sure "Show all filename extensions." is
selected
(under Finder > Preferences/Settings -- Advanced).
See:
How to Show File Extensions In The Mac OS X Finder
Show or hide filename extensions on Mac
Introduction To Objects With Java (Chapter 102 - Working With Files)
Chapter 102 - Working With Files
Viewing File Extensions
Contents
Overview
Video
File Types
Directories
Console
Editing
Challenge
Chapter
Top
Search
TOC