What is prefix of a string?



What is prefix of a string?..

Answer / Bhagya Laxmi Upadhyay

In Java, a prefix of a string refers to any initial subsequence of the string. For example, if s is a string, then "ab" is a prefix of "abc". You can check if a string has a specific prefix using substring() method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

WHAT IS THE SCOPE FOR COREJAVA...? IS JAVA ONLY CORE JAVA ?

2 Answers  


What data type is string java?

1 Answers  


What are the types of sockets in java?

1 Answers  


Why is logger singleton?

1 Answers  


What are user defined exceptions?

1 Answers  


What is super constructor?

1 Answers  


Explain creating threads by implementing runnable class?

1 Answers  


Does string isempty check for null?

1 Answers  


Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?

3 Answers   Four soft,


is it possible to instantiate the math class?

1 Answers  


What is the difference between logical data independence and physical data independence?

1 Answers  


How do you use compareto in java?

1 Answers  


Categories