Creates text object that can hold 10 rows of text.
Creates text object that can hold 10 columns of text.
Creates the object text and initializes it with the value 10.
The code is illegal.
B. Creates text object that can hold 10 columns of text.
-protected
-public
-private
-encoding
break();
continue(inner);
return;
exit();
NULL
Implements
Protected
None of the above
start()
init()
runnable()
run()
Represents a single client inside the application server
Can not be shared
Is not persistent
Satisfies all of the above conditions
get method and post method
get method or post method
Either of the above
java.lang.Thread
java.lang.Runnable
java.lang.Object
java.lang.ThreadGroup
True
False
init method
doGet(------) method
All of the above methods.
byte b1 = 5;
byte b2 = 10;
x = b1 * b2;
int short
extending two or more classes
extending one class and implementing one or more interfaces
all the above
Random
Vector
Byte
all of the above
True
False
try
{
int x=0; int y=50/x;
System.out.println("Division by zero");
}
catch(ArithmeticException e)
{
System.out.println("catch block");
}
Error. Won't compile
Division by zero
Catch block
Division by zero catch block
True.
False.
Creates text object that can hold 10 rows of text.
Creates text object that can hold 10 columns of text.
Creates the object text and initializes it with the value 10.
The code is illegal.
Applet
Component
Container
Object
True
False
True
False
4
2
-2
-4
True.
False.
true
false
Entity Bean
Session Bean
Message-driven bean
All of the above
True
False
True
False
An abstract class may not have any final methods?
A final class may not have any abstracts methods.
Transient variables must be static.
all of the above
True
False
auto commit is on, by default
It performs a hidden commit statement as well
Does not commit
None of the above.
remove()
desappear()
hide()
move()
True
False