Skip to content

Tag Archives: Java-Output

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? class Outer {     class Inner {     public… Read More
Q 1.What is the output of this program? class Test { public final int a; } class Example { public static void main(String args[])     {… Read More
Find the output of below java program Q 1. What is the output of this program? public class Example {     int x = 10; public… 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
Prerequisite : Multi-threading in Java 1. What will be the output of the program? class Test extends Thread { public     void run()     {         System.out.println("Run");     }… Read More
Prerequisite : static and instance variables Question 1. What is the output of this question? class Test1 {     int x = 10; public static void… Read More