aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • C++, Java, and .NET Programming Concepts
  • what is the output? class A{ int i=1; void printit() { i=...
Multiple choice technology programming languages

what is the output? class A{ int i=1; void printit() { i=i++; system.out.println(i);} } class AS { public static void main(String s[]) { A a=new A(); a.printit(); } }

  1. 1

  2. 2

  3. Error

  4. None

Reveal answer Fill a bubble to check yourself
A Correct answer

Keep practicing — related questions

  • public class test08 { public static void main(String[] args) { System.out.print("H" + "a"); System.out.prin...
  • What will be output of following code?public class Main { public static void main(String[] args) { int i; i...
  • Given the following code, what will be the output? class Value { public int i = 15; } public class Test { p...
  • What is the output of the above program? public class A { static int a; public static void main(String args...
  • What will be the output of the program? public class Test { public static void main(String [] args) { int I...
  • What will be the output of the program? public class A { void A() /* Line 3 */ { System.out.println("Class ...
  • What is the output for the below code ? public class Tech { public void tech() { System.out.println("Tech")...
  • What is the output?? interface My { int x=10; } class Test implements My { public static void main(String[]...
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