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

  • SEARCH
  • Home
  • 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 957779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:45:40+00:00 2026-05-16T00:45:40+00:00

I just tested the backspace escape as follows: System.out.println(Hello\b); I expected to get the

  • 0

I just tested the backspace escape as follows:

System.out.println("Hello\b");

I expected to get the output: Hell
But it was: “Hello” with a square block

anyone knows how java handle this?

  • 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-05-16T00:45:41+00:00Added an answer on May 16, 2026 at 12:45 am

    Java doesn’t ‘handle’ that character at all. All it knows about is a byte stream onto which the OS says it can write bytes, and it will happily write bytes into it, including an ASCII backspace.

    What happens when the stream receives that character has nothing whatsoever to do with Java, it is totally terminal-dependent. Some terminals will erase the previous character, some will display the backspace character as some weird glyph, or even as a special “backspace character” glyph. Some may drop the character altogether if they can’t interpret it, others (most terminal emulators, in fact) will behave differently depending on how they’re configured. But all this has nothing to do with Java, they will behave that way whether they’re written to by Java or Perl print or C++ cout or whatever else.

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

Sidebar

Related Questions

I've just tested locally my web application, everything works fine, but after uploading to
Actually I use DbContext, but I just tested it with ObjectContext as well. //
I just tested which type of code is executed by the WinForms Designer in
I just tested Geolocation on Firefox 3.6 and iPhone Safari (os 3.1.3), the result
Update: I just tested my JSON format returned from the server using JSONlint and
I just publicated yesterday my first android application. I did not tested on android
My MySQL database can store the euro symbol just fine (as I have tested
I just installed cucumber, and I tested it. I got the following error: teefcomp:cucumber-intro
I just tested this simple php file upload script. Works in all browsers except
I just tested something like this: boost::thread workerThread1(boost::bind(&Class::Function, this, ...); boost::thread workerThread2(boost::bind(&Class::Function, this, ...);

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.