Java strings

Java strings

University

5 Qs

quiz-placeholder

Similar activities

OOP Module 3 Tutorial (Quiz)

OOP Module 3 Tutorial (Quiz)

University

10 Qs

Què has après sobre el web ?

Què has après sobre el web ?

University

10 Qs

PYTHON_CHAPTER 6

PYTHON_CHAPTER 6

University

10 Qs

Introducción a la estructura de datos

Introducción a la estructura de datos

University

10 Qs

SOII. Gestión ficheros y práctica

SOII. Gestión ficheros y práctica

University

10 Qs

Quiz Pem Mobile

Quiz Pem Mobile

University

10 Qs

Bootstrap

Bootstrap

University

10 Qs

Java strings

Java strings

Assessment

Quiz

Computers

University

Medium

Created by

Jamunadevi T

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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