how to split string in java?



how to split string in java?..

Answer / Chandan Bhardwaj

In Java, you can split a string using the `split()` method. This method takes a regular expression as an argument and returns an array of strings that are the substrings of the original string that match the pattern.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Is Java is 100% pure OOPS? Explain?

27 Answers   ANZ,


What's the default access specifier for variables and methods of a class?

1 Answers  


What is the difference between panel and frame ?

7 Answers   HCL, IBM, Raim Techno Solutions,


How to decrease number of hashings in has

1 Answers  


How do you reverse sort a list in java?

1 Answers  


Which object oriented concept is achieved by using overloading and overriding?

1 Answers  


what is the use of Clonable,and serializable interface?

1 Answers  


What is difference between static and final?

1 Answers  


Does treeset use compareto?

1 Answers  


What is the difference between exception and error in java?

1 Answers  


How many techniques can be employed to create a string object?

1 Answers  


When we serialize an object does the serialization mechanism saves its references too?

1 Answers  


Categories