Skip to content

Tag Archives: Java-Output

Prerequisite : static and instance variables Question 1. What is the output of this question? class Test1 {     int x = 10; public static void… Read More
Prerequisite : throws 1. What will be the output of the following program? class Geeks throws ArithmeticException { public     static void main(String[] args) throws ArithmeticException… Read More
Prerequisite: Decision Control and Loops 1. What will be the output of the following program? class Test { public     static void main(String[] args)     {         int… Read More
Prerequisite : Java Arrays Question 1. What is the output of this question? class Test1 { public     static void main(String[] args)     {         int arr[] =… Read More
Prerequisite : try-catch, Exception Handling1. What will be the output of the following program?  Java class Geeks {     public static void main(String[] args)     {         try… Read More
Prerequisite : Loops in Java 1. what will be the output of the following program? public class Test { public     static void main(String[] args)     {… Read More
Prerequisite : Exception Handling, Throws 1. What will be the output of the following program? class Geeks { public     static void main(String[] args)     {         throw… Read More
Prerequisite : Arrays in Java Question 1. What is the output of this question class Test1 { public     static void main(String[] args)     {         int arr[]… Read More
Prerequisite: if else, for loops 1. What will be the output for the following program? public class Test { public     static void main(String[] args)     {… Read More
Prerequisite : while loop in Java 1. What will be the output for the following program? class Test { public     static void main(String[] args)     {… Read More
Prerequisite: Decision Making in Java Predict the Output of the following programs 1. What will be the output of the following program? public class Test… Read More
Predict the output of the following program public class LongDivision {     public static void main(String[] args) {     final long MICROS_PER_DAY = 24 * 60 *… Read More
Problem 1 : Insert code in the given code segments to make the loop infinite. class GFG { public static void main(String s[]){ /* Insert… Read More
1. What is the Output of the following Java Program?  Java import java.util.LinkedList;   class Demo { public void show()     {         LinkedList<Integer> list = new… Read More
Prerequisite: Java – Collections 1. What is the output of following Java Program? import java.util.ArrayList; class Demo { public void show()     {         ArrayList<Integer> list =… Read More

Start Your Coding Journey Now!