Search This Blog

Showing posts with label Java Strings. Show all posts
Showing posts with label Java Strings. Show all posts

Thursday, September 18, 2025

Java String API - 3

 Which of the following methods of the Java String class is deprecated?

a) getBytes(String)

b) getBytes(int, int,byte[],int)

c) getBytes(int,int,char[],int)

d) getBytes(charset)


Created by Nancy K.A.N.

@11:44 18-09-2025

Tuesday, July 1, 2025

Java String API - 1

 Which of the following methods is used to convert a Java String to an array of characters?

a) split()

b) getChars()

c) getBytes()

d) toCharArray()


Created by Nancy K.A.N.

@23:05 01-Jul-2025

Follow on YouTube

https://kannancy.blogspot.com/