What is a newline character in java?



What is a newline character in java?..

Answer / Reshma Kumari

A newline character in Java (represented by the static final String LINE_SEPARATOR) is used to represent the end of a line. It returns the system-specific line separator, which is 'n' on Unix systems and 'rn' on Windows.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

A abstract class extending an abstract class.Super class has both abstract and non-abstract methods.How can we implement abstract and non-abstract mehtods? Explain with snippet

3 Answers  


What is the internal implementation of set in java?

1 Answers  


What is the difference between length and length () in java?

1 Answers  


What are the advantages of arraylist over arrays?

1 Answers  


Is there a way to increase the size of an array after its declaration?

1 Answers  


How to change the priority of thread or how to set the priority of thread?

1 Answers  


Give any two differences between C++ and java.

1 Answers   GrapeCity,


Differentiate between run time error and syntax error.

1 Answers   Amdocs,


When does the compiler supply a default constructor for a class?

9 Answers   TCS,


What is stack explain?

1 Answers  


can we write two same methods in outer class and innerclass.

1 Answers   3i Infotech,


What is method overriding in java ?

1 Answers  


Categories