aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Fundamentals - Methods, Variables, and Memory Management
  • What will be the output?
Multiple choice java

What will be the output?

  1. y string = Java,y string = Java

  2. y string = Javay string = Java

  3. y string = Java, y string = Java

  4. y String = Java, y string = Java

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • What will be the output of the program? String x = new String("xyz"); String y = "abc"; x = x + y; How many...
  • What will be the output of the program? String s = "hello"; Object o = s; if( o.equals(s) ) { System.out.pr...
  • What will be the output of the program? String x = "xyz"; x.toUpperCase(); /* Line 2 */ String y = x.replac...
  • Given the code String s1 = "yes"; String s2 = "yes"; String s3 = new String(s1); Which of the following wou...
  • Given the code String s1 = "yes"; String s2 = "yes"; String s3 = new String(s1); Which of the following wou...
  • What will be output from the following statements: System.out.println(1+2+"3"); System.out.println("1"+2+3);
  • What will be the output of the program? class Test { public static void main(String [] args) { int x= 0; in...
  • What will be the output of the program? int x = 3; int y = 1; if (x = y) /* Line 3 */ { System.out.println(...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy