Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Java
10.8K+ articles
Misc
8.8K+ articles
java-basics
330+ articles
Java-Strings
240+ articles
Java-Arrays
169+ articles
Program Output
48+ articles
Java-Exception Handling
45+ articles
java-puzzle
11+ articles
Java-Output
54 posts
Recent Articles
Popular Articles
Output of Java Programs | Set 45 (static and instance variables)
Last Updated: 02 October 2017
Prerequisite : static and instance variablesQuestion 1. What is the output of this question?JAVA class Test1 { int x = 10;public static void main(String[] ar...
read more
Java
Java-Output
Output of Java Programs | Set 43 (Conditional statements & Loops)
Last Updated: 29 September 2017
Prerequisite: Decision Control and Loops1. What will be the output of the following program?JAVA class Test {public static void main(String[] args) { ...
read more
Java
Java-Output
Loops & Control Structure
Output of Java Programs | Set 46 (Multi-Threading)
Last Updated: 04 October 2017
Prerequisite : Multi-threading in Java1. What will be the output of the program?JAVA class Test extends Thread {public void run() { System.out.prin...
read more
Java
Java-Multithreading
Java-Output
Output of Java Programs | Set 49
Last Updated: 06 September 2022
Find the output of below java program Q 1. What is the output of this program?Java public class Example { int x = 10;public static void main(String args[]) ...
read more
Java
Java-Output
Output of Java Programs | Set 50
Last Updated: 08 August 2024
Q 1. What is the output of this program?Javaclass Test {public final int a;} class Example {public static void main(String args[]) { Test obj = new Test(); ...
read more
Java
Java-Output
Output of Java Programs | Set 51 (Regular Inner class)
Last Updated: 29 September 2022
Prerequisite : Inner Classes in Java1. What will be the .class file name of the Inner class?JAVA class Outer { class Inner { public void m1() ...
read more
Program Output
Java-Output
Java-Class and Object
Output of Java Programs | Set 53 (String Comparison)
Last Updated: 10 September 2018
Prerequisite : String Comparison in Java1. What should be the output of this program? Java class GeeksforGeeks { public static void main(String args[]) { ...
read more
Misc
DSA
Program Output
Java-Output
Java-Strings
Output of Java Programs | Set 52 (Strings Class)
Last Updated: 18 September 2018
Prerequisite : Basics of Strings class in java1. What is the Output Of the following ProgramJava class demo1 { public static void main(String args[]) { ...
read more
Misc
DSA
Program Output
Java-Output
Java-Strings
Format Specifiers in Java
Last Updated: 17 August 2022
Format specifiers begin with a percent character (%) and terminate with a "type character, " which indicates the type of data (int, float, etc.) that will be converted the...
read more
Java
Technical Scripter
Technical Scripter 2018
Java-Output
Java-Strings
Java Program to Accept a Matrix of Order M x N & Interchange the Diagonals
Last Updated: 09 August 2021
Problem Description: Write a Java program that accepts a matrix of M × N order and then interchange diagonals of the matrix.Steps: 1. We can only interchange diagonals fo...
read more
Java
Technical Scripter
Java Programs
Technical Scripter 2020
Output of Java Program
Java-Output
Java 8
Java.lang.Class
Java Program to Implement Park-Miller Random Number Generation Algorithm
Last Updated: 15 December 2020
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, Xk+1 = a * xk mo...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Output of Java Program
Random Algorithms
Java-Output
Java 8
Java Program to Convert Binary Code into Gray Code Without Using Recursion
Last Updated: 22 September 2022
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 only two literals (0 an...
read more
Java
Technical Scripter
Java Programs
Picked
Technical Scripter 2020
Java-Output
Generate Circulant Matrix from given Array
Last Updated: 25 May 2022
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 N x N, where each column is composed of the ...
read more
Greedy
Matrix
DSA
Arrays
Programs for numbers
Java-Output
Arrays
Check if it is possible to move from X to Z using point Y
Last Updated: 24 April 2023
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 Z using point Y with at most one turn of 90 degrees. If possible ret...
read more
Greedy
Competitive Programming
DSA
Java-Output
Java Exercises - Basic to Advanced Java Practice Programs with Solutions
Last Updated: 02 January 2025
Looking for Java exercises to test your Java skills, then explore our topic-wise Java practice exercises? Here you will get 25 plus practice problems that help to upscale...
read more
Java
Java Programs
Output of Java Program
Java-Library
Java-Output
Java-I/O
java-basics
Java-Object Oriented
Java-Strings
Java-Arrays
Java-Data Types
Java-Functions
1
2
3
4
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !