Categories
Computer

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

► Package
► Private
► Protected
► Public

Categories
Computer

Which of the following is modifier is provided by default if no access is written explicitly?

► public
► Private
► Default

► Protected

 

Categories
Computer

Static methods only access ___

► instance variable
► instance method
► static variables and methods            Click here For Detail
► both static and instance members

Categories
Computer

Overloading is _______ whereas overriding is _____

► Run time binding, compile time binding
► Late binding, compile time binding
► Compile time binding, run time binding
► Run time binding, late time binding

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

2 – Java program code is compiled into form called

►Machine code
►native Code
►Byte Code (Page 16)
►Source Code

Categories
Computer

1 – 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 rep
►The program compiles and runs properly
►The program throws an exception on compile time

Categories
Computer

A final class can’t be extended.

► True        Click here For Detail
► False

Categories
Computer

An expression tag contains a scripting language expression that is evaluated.

► True         Click here For Detail
► False

Categories
Computer

JavaBeans are?

► A special Java class file
► Servlets
► Applets
► A Special form of JSP (Page 367)
► None of Give