Java strings

Java strings

University

5 Qs

quiz-placeholder

Similar activities

UNIT-1 PYTHON BASICS

UNIT-1 PYTHON BASICS

University

10 Qs

Herencia y Paquetes

Herencia y Paquetes

University

10 Qs

JTable en Java

JTable en Java

University

10 Qs

FST Class 2023- Quiz 2

FST Class 2023- Quiz 2

University

10 Qs

ANTARES Workshop - IoT Knowledge

ANTARES Workshop - IoT Knowledge

1st Grade - Professional Development

10 Qs

Stack2

Stack2

University

10 Qs

CSC1243 - Introduction to Computer Programs (Programming Langua)

CSC1243 - Introduction to Computer Programs (Programming Langua)

University

10 Qs

MULTIMEDIA STORYBOARD

MULTIMEDIA STORYBOARD

University

10 Qs

Java strings

Java strings

Assessment

Quiz

Computers

University

Practice Problem

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