Which of the following package contains Wrapper classes?
java archive
javaAPI
javaInterface
javaUtil
How many primitive data types are there in java
7
8
5
6
Which function reads a line of characters typed by the user?
readLine();
readchar();
readLines();
read();
Which of the following is not an exception handling mechanism?
try
catch
finalize
throw
Which stream class stores information about the connection between an input device and the computer or programs?
InputStream
OutputStream
InputStreamReader
OutputStreamReader
What exception can be thrown by ParseInt method?
Arithmetic
ClassNotFound
NumberFormat
IO
Which of the following problem can be solved by Exception handling?
compile time error
runtime error
static error
none of these
Which Java class have System.out as its instance?
PrintReader
printWriter
PrintStream
printLine
Which of the following Java package includes input output methods?
java.util
java.io
java.lang
java.awt
Which of the following method converts a double type value to a string ?
Substring
charAt
compareTo
ValueOf