Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9181677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:22:30+00:00 2026-06-17T18:22:30+00:00

What is the maximum name length of the TempFile in java and MaximumFilesize is

  • 0

What is the maximum name length of the TempFile in java and MaximumFilesize is depending
on the machine where we mention the temp directory to be created or some other java based?

When to call the deleteOnExit() method— but what is the use of this method because it gets called when the JVM comes down.But in Production based servers will run 24*7.So file will be created continuously and it will be problem for the server where we create file because of the memory.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T18:22:31+00:00Added an answer on June 17, 2026 at 6:22 pm

    What is the maximum name length of the TempFile in java and MaximumFilesize is depenting on the machine where we mention the temp directory to be created or some other java based?

     1775           static File generateFile(String prefix, String suffix, File dir) {
     1776               long n = random.nextLong();
     1777               if (n == Long.MIN_VALUE) {
     1778                   n = 0;      // corner case
     1779               } else {
     1780                   n = Math.abs(n);
     1781               }
     1782               return new File(dir, prefix + Long.toString(n) + suffix);
     1783           }
    

    so the file name could be any random long with prefix suffix

    When to call the deleteOnExit() method— but what is the use of this method because it gets called when the JVM comes down.But in Production based servers will run 24*7

    There are some file thats needs to be created for application life,

    For example when you launch eclipse you will see .lock file created to lock the work space it will get deleted when your eclipse exists

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given a model: class Person validates_lenght_of :name, :maximum => 50 end I have some
What is the maximum length of a variable name in JavaScript?
Possible Duplicates: Maximum Method Name Length What is the maximum length of a C#/CLI
I need the maximum length of a uniform name. ie: given a used program
What is the maximum length of a table name in MySQL?
Possible Duplicate: Maximum length of variable name in JavaScript While reading on a bit
What are the maximum length of a table name and column name in Oracle?
What's the maximum length for an album name and a wall post allowed on
Does anyone happen to know what the maximum length of a method name is
Can anyone confirm that the maximum length of a key container name in Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.