Java I/O – Check If File Path Absolute or not






In Java File class a member method isAbsolute() returns true if this abstract path name is absolute or returns false otherwise.

Lets take an example to understand the method in a better way. In this example we will construct the file path using File constructor.

OUTPUT :
true

Reference:
https://docs.oracle.com/javase/7/docs/api/java/io/File.html


Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Stuff I use to make videos

Windows notebook – http://amzn.to/2zcXPyF

Apple MacBook Pro – http://amzn.to/2BTJBZ7

Desktop - http://amzn.to/2zct252

Microphone – http://amzn.to/2zcYbW1

notebook mouse – http://amzn.to/2BVs4Q3

Screen Recording Software – Camtasia