Skip to content

Tag Archives: Java-Output

Given three points X, Y, and Z of a 2D plane, the task is to check if it is possible to move from X to… Read More
Given an array A[], the task is to find the circulant matrix made by this array.  A circulant matrix is a square matrix of order… Read More
Binary Code of a number is the representation of a number in Binary (base-2) number system. In Binary Number System, each number is expressed using… Read More
Park–Miller random number generator is also known as Lehmer random number generator. A general formula of a random number generator (RNG) of this type is,… Read More
Problem Description: Write a Java program that accepts a matrix of M × N order and then interchange diagonals of the matrix. Steps:   1. We… Read More
Format specifiers begin with a percent character (%) and terminate with a “type character, ” which indicates the type of data (int, float, etc.) that… Read More
Friends! I recently appeared for OCA exam and scored 95%. Here i am sharing few techniques and exam question patterns which must be helping you… Read More
Question 1: What will be the Output of the below code: public class A {     public static void main(String[] args)     {         if (true)             break;     }… Read More
Prerequisite : String Comparison in Java 1. What should be the output of this program? class GeeksforGeeks {     public static void main(String args[])     {         String… Read More
Prerequisite : Basics of Strings class in java 1. What is the Output Of the following Program class demo1 {     public static void main(String args[])… Read More
Prerequisite : Inner Classes in Java  1. What will be the .class file name of the Inner class?  JAVA class Outer {     class Inner {… Read More
Q 1. What is the output of this program?  Java class Test { public final int a; } class Example { public static void main(String… Read More
Find the output of below java program Q 1. What is the output of this program?  Java public class Example {     int x = 10;… Read More
Prerequisite : Static keyword in Java Question 1. what is the output of this question? class Test1 { public     static void main(String[] args)     {         int… 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