All India Exams
Home AptitudeBankEngineeringEnglishGKInterviewOnline TestPlacement PapersReasoning
  • Home
  • Aptitude
  • Bank
  • Engineering
  • English
  • GK
  • Interview
  • Online Test
  • Placement Papers
  • Reasoning

Strings Questions And Answers

Here you can find Strings Questions and Answers.

Why Strings Questions and Answers Required?

In this Strings Questions and Answers section you can learn and practice Strings Questions and Answers to improve your skills in order to face technical inerview conducted by organisations. By Practicing these interview questions, you can easily crack any Exams interview.

Where can I get Strings Questions and Answers?

AllIndiaExams provides you lots Strings Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download Strings Questions and Answers as PDF files and eBooks.

How to solve these Strings Questions and Answers?

You no need to worry, we have given lots of Strings Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Competitive Exams interview.

Strings Questions and Answers

1. Which of these class is superclass of String and StringBuffer class?

Strings Questions and Answers

2. Which of these operators can be used to concatenate two or more String objects?

Strings Questions and Answers

3. Which of these method of class String is used to obtain length of String object?

Strings Questions and Answers

4. Which of these method of class String is used to extract a single character from a String object?

Strings Questions and Answers

5. Which of these constructors is used to create an empty String object?

Strings Questions and Answers

6. Which of these is an oncorrect statement?

Strings Questions and Answers

7. Which of these method of class String is used to compare two String objects for their equality?

Strings Questions and Answers

8. Which of these methods is used to compare a specific region inside a string with another specific region in another string?

Strings Questions and Answers

9. Which of these method of class String is used to check weather a given object starts with a particular string literal?

Strings Questions and Answers

10. What is the value returned by function compare to() if the invoking string is less than the string compared?

Home EngineeringComputer Science & EngineeringJava Questions and AnswersStrings

Strings - Java Multiple Choice Questions and Answers

This is the java programming questions and answers section on "Java Strings" with an explanation for various interview, competitive examination and entrance test. Solved examples with detailed answer description, explanation are given and it would be easy to understand.

Java Strings Questions

Online Test Name Java Strings
Exam Type Multiple Choice Questions
Category Computer Science Engineering Quiz
Number of Questions 26
1. Which of these class is superclass of String and StringBuffer class?
  • A. java.util
  • B. java.lang
  • C. ArrayList
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option B

Explanation:

java.lang

Workspace

Report Error


2. Which of these operators can be used to concatenate two or more String objects?
  • A. +
  • B. +=
  • C. &
  • D. ||
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

operator + is used to concatenate strings, Example String s = "i  + "like  + "java; String s contains "I like java.

Workspace

Report Error


3. Which of these method of class String is used to obtain length of String object?
  • A. get()
  • B. Sizeof()
  • C. lengthof()
  • D. length()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option D

Explanation:

Method length() of string class is used to get the length of the object which invoked method length().

Workspace

Report Error


4. Which of these method of class String is used to extract a single character from a String object?
  • A. CHARAT()
  • B. charat()
  • C. charAt()
  • D. ChatAt()
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option C

Explanation:

charAt()

Workspace

Report Error


5. Which of these constructors is used to create an empty String object?
  • A. String()
  • B. String(void)
  • C. String(0)
  • D. None of the mentioned
  • View Answer
  • Workspace
  • Report
  • Discuss

Answer & Explanation

Answer: Option A

Explanation:

String()

Workspace

Report Error


  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • »

Related Topics:

  • Input Output Streams
  • Threads
  • Arrays
  • Packages
  • Collections
  • Applets
  • java.util Package
  • Data Types
  • Exception Handling
  • java.io Package

Mock Tests & Online Quizzes

  • Aptitude Online Test

  • Reasoning Online Test

  • GK Online Test

  • English Online Test

  • RRB Mock Test

  • RBI Mock Test

  • Free SBI Mock Test

  • IBPS Mock Test FREE

  • SSC Mock Test

  • CAT Exam Mock Test

  • GATE Mock Test

  • IT Courses Quiz

Questions and Answers

  • Aptitude Questions
  • Verbal Reasoning Questions
  • Non Verbal Reasoning
  • Logical Reasoning Questions
  • Data Sufficiency Questions
  • Data Interpretation
  • eLitmus Sample Papers
  • ECE Questions and Answers
  • EEE Questions and Answers
  • Verbal Ability Questions
  • GK Questions

Programming Quiz

  • C Programming
  • C++ Programming
  • PHP Programming
  • Java Programming
  • Python Programming
  • DataScience MCQ
  • Hadoop MCQ
  • Mongo DB MCQ
  • MySQL MCQ

Interview Questions

  • Java Interview Questions
  • .Net Interview Questions
  • Networking Interview Questions
  • C Language Interview Questions
  • C++ Interview Questions
  • Testing Interview Questions
  • Android Interview Questions
  • HR Interview Questions
  • Group Discussion Topics

Mock Tests

  • CAT Mock Test
  • SSC Mock Test
  • AMCAT Mock Online Test
  • LIC Mock Test
  • IBPS Mock Test
  • RRB Mock Test
  • RBI Mock Test
  • Free SBI Mock Test
© by AllIndiaExams.in. All Rights Reserved | Copyright | Terms of Use & Privacy Policy