Categories
Computer

____________is/are the JSP Implicit Object(s).

► session
► application
► config
► All of Given Click here For Detail
► None of Given

Categories
Computer

Which of following can be thrown using the throw statement?

► Error
► Throwable
► Exception (Page 72)
► RuntimeException
► All of Given

Categories
Computer

In Java garbage collection is done by_______________

► JVM (Java Virtual Machine) (Page 47)
► Programmer
► Both JVM (Java Virtual Machine)and Programmer
► OS (Operating System)
► None of given

Categories
Computer

You want a class to have access to members of another class in the same package. Which is the most restrictive access that accomplishes this objective?

► public
► private
► protected
► transient
► default access

Categories
Computer

A top level class may have only the following access modifier.

► Package
► Private
► Protected
► Public

Categories
Computer

A top level class without any modifier is accessible to

► any class
► any class within the same package Click here for Detail
► any class within the same file
► any subclass of this class

Categories
Computer

n Java a final class must be sub-classed before it.

► True
► False

Categories
Computer

A member variable or method prefixed by the protected access modifier can be accessed:

► Within the same class
► Within the sub-class
► Within the same package
► All of the above

Categories
Computer

What if the main method is declared as private?

► The program does not compile…
► The program compiles but does not run Click here for Detail
► The program compiles and runs properly
► The program throws an exception on compile time

Categories
Computer

What if the static modifier is removed from the signature of the main method?

► The program does not compile
► The program compiles but does not run
► The program compiles and runs properly
► The program throws an exception on compile time Click here for Detai