• HOME
  • QUIZ
  • CONTACT US
EXAMIANS
  • COMPUTER
  • CURRENT AFFAIRS
  • ENGINEERING
    • Chemical Engineering
    • Civil Engineering
    • Computer Engineering
    • Electrical Engineering
    • Mechanical Engineering
  • ENGLISH GRAMMAR
  • GK
  • GUJARATI MCQ

JAVA STRINGS

JAVA Strings
String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is

The first occurrence of k is replaced by a.
All characters a are replaced by k.
All characters k are replaced by a.
Displays error message

ANSWER DOWNLOAD EXAMIANS APP

JAVA Strings
The class string belongs to ................. package.

java.awt
java.string
java.applet
java.lang

ANSWER DOWNLOAD EXAMIANS APP

JAVA Strings
What will be the output?public class Test{ public static void main (String[] args){ String test = "a1b2c3"; String[] tokens = test.split("\\d"); for(String s: tokens) System.out.print(s); } }

123
abc
Runtime exception thrown
Compilation error

ANSWER DOWNLOAD EXAMIANS APP

JAVA Strings
How many objects will be created?String a = new String("Examveda");String b = new String("Examveda");String c = "Examveda";String d = "Examveda";

3
2
4
None of this

ANSWER DOWNLOAD EXAMIANS APP

JAVA Strings
How many Constructor String class have?

13
11
2
7
None of this

ANSWER DOWNLOAD EXAMIANS APP
  • «
  • 1
  • 2
  • 3
  • 4
  • »

GO TO PAGE

DOWNLOAD APP

  • APPLE
    from app store
  • ANDROID
    from play store

SEARCH

LOGIN HERE


  • GOOGLE

FIND US

  • 1.70K
    FOLLOW US
  • EXAMIANSSTUDY FOR YOUR DREAMS.
  • SUPPORT :SUPPORT EMAIL ACCOUNT : examians@yahoo.com

OTHER WEBSITES

  • GUJARATI MCQ
  • ACCOUNTIANS

QUICK LINKS

  • HOME
  • QUIZ
  • PRIVACY POLICY
  • DISCLAIMER
  • TERMS & CONDITIONS
  • CONTACT US
↑