Does java trim remove newline?



Does java trim remove newline?..

Answer / Makeshwar Tanti

Yes, the Java String's trim() method removes any whitespace from both the beginning and end of a string. This includes spaces, tabs, and line breaks.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a “stateless” protocol ?

1 Answers  


What are serialization and deserialization?

1 Answers  


Which java version is latest?

1 Answers  


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


Are arrays passed by reference in java?

1 Answers  


. Define Copy Constructor in Java

1 Answers  


What is a linkedhashmap java?

1 Answers  


How does indexof work?

1 Answers  


who can i handle multiple client in RMI

1 Answers  


What do you mean by thread safe?

1 Answers  


class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?

7 Answers   HCL, TCS,


How hashmap works in java?

1 Answers  


Categories