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: filter_none edit close play_arrow link brightness_4 code public class A {     public static void… Read More
Prerequisite : String Comparison in Java 1. What should be the output of this program? filter_none edit close play_arrow link brightness_4 code class GeeksforGeeks {… Read More
Prerequisite : Basics of Strings class in java 1. What is the Output Of the following Program filter_none edit close play_arrow link brightness_4 code class… Read More
Prerequisite : Inner Classes in Java 1. What will be the .class file name of the Inner class? filter_none edit close play_arrow link brightness_4 code… Read More
Q 1.What is the output of this program? filter_none edit close play_arrow link brightness_4 code class Test { public final int a; } class Example… Read More
Find the output of below java program Q 1. What is the output of this program? filter_none edit close play_arrow link brightness_4 code public class… Read More
Prerequisite : Static keyword in Java Question 1. what is the output of this question? filter_none edit close play_arrow link brightness_4 code class Test1 {… Read More
Prerequisite : Arrays in Java Question 1. What is the output of this question? filter_none edit close play_arrow link brightness_4 code class Test1 { public… Read More
Prerequisite : Multi-threading in Java 1. What will be the output of the program? filter_none edit close play_arrow link brightness_4 code class Test extends Thread… Read More
Prerequisite : static and instance variables Question 1. What is the output of this question? filter_none edit close play_arrow link brightness_4 code class Test1 {… Read More