I/O
Test
Model Test
Ebook
Quiz 1: Java Programming
Index
Java Home
Basics
31
Methods
11
I/O
3
Appendix
2
Control Structure
4
Class and Object
11
OOP Concepts
18
Exception Handling
10
Threading
15
Operators
15
Collection
12
Schools
Ebook
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
Show answer
Show Note
Report
Question:
To get any input from the keyboard we have to include the package
import
java.io.*
A
True
B
False
Note:
Not available
Show answer
Show Note
Report
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
Show answer
Show Note
Report
First
Prev
1
Next
Last
/1
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2024. Powered by
Intellect Software Ltd