Prerequisite : Arrays in Java Question 1. What is the output of following program? class ArrayDemo { public static void main(String[] args) { int arr1[]… Read More
Tag Archives: Java-Output
Prerequisite : Arrays in Java 1. What will be the output of the following program? Java public class Test { public static void main(String[] args)… Read More
QUE.1 What is the output of this program ? public class Prg { public static void main(String args[]) { System.out.print('A' + 'B'); } } OPTION… Read More
Question 1. What is the output of the following question? class Test1 { public static void main(String[] args) { int String = 65; int Runnable… Read More
Question 1. What is the output of the following question? class Test { int a = 10; static int b = 20; public static… Read More
Ques1. What is the output of the following? import java.util.*; public class Test { public static void main(String[] args) { int[] x = new… Read More
Ques1: What is the output of this program? class A { public int i; private int j; } class B extends A { void… Read More
Pre-requisite: Polymorphism in java 1) What is the output of the following program? class GFG { protected void getData() { System.out.println("Inside GFG"); } } class… Read More
Difficulty level : Easy Prerequisite : final keyword in java Predict the output of following Java Programs: What will be output of following program? class… Read More
Prerequisite: Inheritance in Java 1) What is the output of the following program? Java public class A extends B { public static String sing() {… Read More
Prerequisite – Overloading in Java1) What is the output of the following program? Java public class Test { public int getData() //getdata() 1 { return… Read More
Prerequisite – Type Conversions in Java with Examples 1) What is the output of the following program? public class Test { public static void main(String[]… Read More
Prerequisite – Inheritance in Java Predict the output of following Java Programs. Program 1 : class A { public A(String s) { System.out.print("A"); } }… Read More
Predict the output of following Java Programs. Program 1 : public class RuntimePolymorphism { public static void main(String[] args) { A a = new B();… Read More
Prerequisite – Overriding in Java 1) What is the output of the following program? class Derived { protected final void getDetails() { System.out.println("Derived class"); }… Read More