1. Question: To get any input from the keyboard which package we have to include?

    A
    import java io

    B
    import java.io.*;

    C
    import java.*;

    D
    None of the above

    Note: Not available
    1. Report
  2. Question: To get any input from the keyboard we have to include the package import java.io.*

    A
    True

    B
    False

    Note: Not available
    1. Report
  3. Question: Take a close look at the following code. Which one will provide the addition activity?

    A
    class Calculator{

    public static void main(String args[]){

        adds(10,10);

    }

    public static void adds(int a,int b){

          System.out.println(a+b);
        
    }


    }

    B
    class Calculator{

    public static void main(String args[]){

        adds(10,10);

    }

    public static void adds(){

          System.out.println(a+b);
        
    }


    }

    C
    class Calculator{

    public static void main(String args[]){

        adds(10,10);

    }



    }

    D
    None of the above

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd