MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a Java-program to print Max Number using no return type with parameterized method

  1. Home
  2. Java Programs

Write a Java-program to print Max Number using no return type with parameterized method

Write a Java-program to print Max Number using no return type with parameterized method

Program
class Maxnum
{
    void max(int x,int y)
    {
    
        if(x>y)
        {
            System.out.println("x is Max Number");
        }
        else
        {
            System.out.println("y is Max Number");
        }
    }
}
public class Main
{
    public static void main(String args[])
    {
        Maxnum m=new Maxnum();
        m.max(10,20);
    }
}

Output:

y is Max Number





More Questions


102 . Write a Java-program to print Max Number using no return type with parameterized method
103 . Write a Java-program to print Max Number using return type with no parameterized method
104 . Write a Java-program to print Max Number using return type with parameterized method
105 . Write a Java-program to print Factorial Number using no return type with no parameterized method
106 . Write a Java-program to print Factorial Number using no return type with parameterized method
107 . Write a Java-program to print Factorial Number using return type with no parameterized method
108 . Write a Java-program to print Factorial Number using return type with parameterized method
109 . Write a Java-program to print static method
110 . Write a Java-program to print static variable
111 . Write a Java-program to using static block
112 . Write a Java-program to print addition ,substraction ,multiplication,division using oops (using single class)


Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program to swap the first and last elements of an array and create a new array

Write a Java program to compute the square root of an given integer

Write a java Program to check the given number is Palindrome or not

Write a Java Program to Check if a Number is Positive, Negative or Zero.

Write a Java program that takes two numbers and display the product of two numbers

Python Practice Programs

Write a Python program to print fibonacci series

Write a Python Program to Check if a Number is Positive, Negative or Zero.

Write a Python Program to Find Armstrong Number in an Interval.

Write a Python program to get n (non-negative integer) copies of the first 2 characters of a given string. Return n copies of the whole string if the length is less than 2.

Write a Python Program to check armstrong number of n digits

Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Java Quiz

Java Quiz - 14

Java Quiz - 5

Java Quiz - 12

Java Quiz - 3

Java Quiz - 20

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs