Font size
WorksheetsADVANCED JAVA WEEK 11 TO 14
Total questions: 50
Worksheet time: 26mins
It is a problem that arises during the execution of a program
Exceptions
JVM
Throwable
FileReader
It is the exception that occurs at the compile time.
Checked exceptions
IOException
FileNotFoundException
Unchecked exceptions
It is an exception that occurs at the time of execution.
Unchecked exception
ArrayIndexOutOfBoundsExceptionexception
Runtime exceptions
IOException
It indicates serious problem that a reasonable application should not try to catch
NullPointerException
Exception
Error
RuntimeException
It indicates conditions that a reasonable application might try to catch
NullPointerException
Exception
Error
RuntimeException
All exception and errors types are subclasses of class (a)
There is an important subclass of Exception, called (a) this type are automatically defined for the programs that you write and include things such as division by zero and invalid array indexing.
It is the most general and represents any type of error that can occur when performing I/O.
FileNotFoundException
NullPointerException
RuntimeException
IOException
This exception means that a file could not be located on disk.
FileNotFoundException
NullPointerException
RuntimeException
IOException
It a block that contains set of statements where an exception can occur
Catch block
Try catch
Try block
Multiple Catch
It is a block where handle the exceptions are handled
Catch block
Try catch
Try block
Multiple Catch
It is the keyword that is used for handling checked exceptions
Exceptions
Syntax
Finally
Throws
It is the keyword that is used to create a block of code that follows a try block.
Exceptions
Syntax
Finally
Throws
This exception is defined or customed by programmer
ArithmeticException
User-defined exception
NullPointerException
IOException
It is a collection of statements that are grouped together to perform an operation.
Method
System
Statements
Operation
It is defined in the method header are known as formal parameters.
Parameters
Argument
Variables
Signature
It is a method that does not return any value
Void
Grade
Java
Score
It is a statement that is not needed for a void method
Void
Method
Syntax
Return
The power of a method is its ability to work with parameters
True
False
You can use println to print any string and max to find the maximum between any two int values
True
False
The arguments must match the parameters in order, number, and compatible type, as defined in the method signature.
True
False
Compatible type means invoke a method with a parameter
True
False
Swap is a program that demonstrates the effect of passing by value
True
False
The min method that was used earlier works only with the int data type
True
False
The local of a variable is the part of the program where the variable can be referenced
True
False
A scope variable must be declared before it can be used
True
False
_______ in Java are a way of grouping similar types of classes together
Exception
Packages
Thread
Error
The concept of package can be considered as means to achieve data ________
Inheritance
Encapsulation
Polymorpsm
Abstraction
It is the packages which come as a part of Java Runtime Environment
Pre-defined packages
User-defined packages
Java Runtime Environment
Standard
It is the packages defined by programmers to bundle group of related classes
Pre-defined packages
User-defined packages
Java Runtime Environment
Standard
It is a default package which contain primitive data type
java.lang
java.awt
java.io
java.applet
It is used for developing file handling application
java.lang
java.awt
java.io
java.applet
It the package that is use for developing GUI
java.lang
java.awt
java.io
java.applet
It the package that is used for developing browser oriented application
java.lang
java.awt
java.io
java.applet
It the package that is used for developing client server application
java.net
java.util
java.sql
java.beans
It the package that contains utility classes which implement data structure
java.net
java.util
java.sql
java.beans
It the package that is used retrieving data from the database
java.net
java.util
java.sql
java.beans
It the package that contains classes and interfaces related to JavaBeans components
java.net
java.util
java.sql
java.beans
It the package that provides classes for performing artbitrary-precision interger arithmetic
java.math
java.nio
java.rmi
java.text
It the package that defines buffers
java.math
java.nio
java.rmi
java.text
It the package that is a mechanism that enables an object on one Java Virtual Machine to invoke methods
java.math
java.nio
java.rmi
java.text
It the package that is used for formatting date and time on day to day business operations
java.math
java.nio
java.rmi
java.text
It the package that provides the classes and interfaces for security framework
java.security
java.time
java.rmi
java.text
It the package that used for dates, times, instants, and duration
java.security
java.time
java.rmi
java.text
It refers to a computers ability to perform multiple jobs concurrently
Multitasking:
Multithreading
Application
Threads
It is a multiple sequence of execution within a program
Multithreading
Multitasking
Thread
Application
It is the thread method that creates a new thread and makes it runnable
yield()
void stop()
void run()
void start()
It is the thread method where the new thread begins its life inside this method
yield()
void stop()
void run()
void start()
It is the thread method where the thread is being terminated
yield()
void stop()
void run()
void start()
It is the thread method that causes the currently executing thread object to temporarily pause and allow other threads to execute
yield()
void stop()
void run()
void start()
