• Business
  • Finance
  • Banking
  • Education
  • General
  • Law
  • Science
  • IT
  • English

Key Differences

Know the Differences & Comparisons

Difference Between Write and WriteLine

write vs writelineWrite Method

Write method resides inside the ‘Console’ class which itself resides inside the System namespace. The Console class provides basic support for applications that read and write characters to and from the console. The write() method outputs one or more values on the screen without a new line character. This means any subsequent output will be printed in the same line.

Example of Write() in C#
writeOutput:
Car Bus Truck

WriteLine Method

The WriteLine method also resides inside the ‘Console’ class of the System namespace. The WriteLine method prints one or more object on a single line with a new line character inserted at the end. This means any subsequent output will be printed on a new line.

Example of WriteLine() in C#
writelineOutput:
Car
Bus
Truck

Difference Between Write and WriteLine

The Write method is used to print one or more objects on a single line without inserting a new line character at the end. The WriteLine method inserts a new line character after printing the output. In the Write method, the cursor remains at the same line, while in WriteLine it moves to the next.

You Might Also Like:

abstract class vs interfaceDifference Between Abstract class and Interface in C# Difference Between Interface and Class ref vs out parameterDifference Between ref and out parameter in c# array vs arraylistDifference Between Array and ArrayList in C# personality vs characterDifference Between Personality and Character InflationDifference Between Demand-Pull and Cost-Push Inflation

Comments

  1. Jayesh says

    December 30, 2016 at 3:49 pm

    Its really clear to understand the article you write
    Thanks

    Reply
  2. Shafiul Azam says

    February 21, 2018 at 10:11 am

    All your writing is so clear and easy to read. Thanks a lot indeed.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Top 5 Differences

  • Difference Between PERT and CPM
  • Difference Between Micro and Macro Economics
  • Difference Between Developed Countries and Developing Countries
  • Difference Between Management and Administration
  • Difference Between Qualitative and Quantitative Research



New Additions

  • Difference Between Deforestation, Reforestation and Afforestation
  • Difference Between Race and Ethnicity
  • Difference Between Customer Service and Customer Experience
  • Difference Between Human Capital and Human Development
  • Difference Between Systems Approach and Contingency Approach
  • Difference Between Industrial Relations and Employee Relations
  • Difference Between Introduction and Executive Summary
  • Difference Between Programmed and Non-programmed Decisions
  • Difference Between Depreciation and Devaluation of Currency
  • Difference Between Consumer Market and Business Market

Categories

  • Banking
  • Business
  • Education
  • English
  • Finance
  • General
  • IT
  • Law
  • Science
fb-follow youtube follow

Copyright © 2025 · Key Differences · Contact Us · About Us · Privacy