Search Header Logo

Java Fundamentals-3

Authored by SOBHANBABU SOBHANBABU

Computers

Professional Development

Used 10+ times

Java Fundamentals-3
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

What is the output of the following String Function:

String s="Gudlavalleru Engineering College";

System.out.println(s.substring(6,15));

lavalleru Eng

alleru E

valleru Eng

alleru En

2.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the following String classes are not Thread safe

String

StringBuffer

StringBuilder

StringReader

3.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Which of the string class(es) is/are Mutable

String

StringBuilder

StringBuffer

StringWriter

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following statement:


System.out.println(45+21/3/3+"hai"+1+2+3);

47hai6

7hai123

47hai123

Compile time Error

7hai6

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Predict the output of the following code:

String s="CSE,IT,ECE";

System.out.println(s.lastIndexOf('E'));

2

7

9

3

6.

MULTIPLE SELECT QUESTION

1 min • 1 pt

String reverse() function is available with the following classes:

StringBuilder

StringBuffer

String

StringReader

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

What is the output of the following Statement:

String s1="GECIT";

String s2="GECCSE";

System.out.println(s2.compareTo(s1));

-6

6

We can't predict (some -ve value)

7

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?