aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Servlets, JSP and C Programming Quiz
  • class a { public staic void main(String ar[]) { String s=...
Multiple choice technology programming languages

class a { public staic void main(String ar[]) { String s="abcxyz"; s.substring(2,5) System.out.println(s); } }

  1. cxy

  2. abcxyz

  3. cxyz

  4. bcxy

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • public class xyz { public static void main(String args[]) { for(int i = 0; i < 2; i++) { for(int j = 2; j>=...
  • What will be the output of following code: class pattern { public static void main(String arts[]) String a ...
  • What will be the output of the program? String a = "newspaper"; a = a.substring(5,7); char b = a.charAt(1);...
  • public class Myfile { public static void main (String[] args) { String biz = args[1]; String baz = args[2];...
  • 9 If you run the code below, what gets printed out? String s=new String("Bicycle"); int iBegin=1; char iEnd...
  • What will be the output of the program? public class StringRef { public static void main(String [] args) { ...
  • class C18 { public static void main(String a[]) { System.out.println("The Potatoes of C18 are:"); } }
  • String s = “Welcome To Java” s.substring(4 , 3 ); What will be the result of the above code?
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Languages and Compilers (2284 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy