Java strings

Java strings

University

5 Qs

quiz-placeholder

Similar activities

Structure in C

Structure in C

University

10 Qs

OOP Quiz

OOP Quiz

University

10 Qs

PAS PBO Kelas 12 RPL

PAS PBO Kelas 12 RPL

12th Grade - University

8 Qs

Quiz de Java

Quiz de Java

University

10 Qs

JS- Quiz 1

JS- Quiz 1

University

10 Qs

Java Arrays

Java Arrays

University

10 Qs

Topic 8-2: Method

Topic 8-2: Method

University

9 Qs

CMP128 Java Ch. 01 Intro PC & Java

CMP128 Java Ch. 01 Intro PC & Java

University

10 Qs

Java strings

Java strings

Assessment

Quiz

Computers

University

Medium

Created by

Jamunadevi T

Used 7+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In java, String is treated as

primitive type

object

wrapper class

abstract class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

String s=new String("TIH");

How many objects are created for the above statement in java?

0

1

2

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not related to comparing Strings in java?

compare()

compareTo()

equals()

==

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method returns byte array of string?

bytes()

toBytes()

getBytes()

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following method returns a string by replacing all the sequence of characters matching the regex?

replace()

replaceAll()

Both

None