Вы находитесь на странице: 1из 5

Which of these is necessary condition for automatic type conversion in Java?

What is the prototype of the default constructor of this class? public class prototype{ }
Which of these is an incorrect statement?
In java byte , short ,int and long are of which type
Which of these is long data type literal?
Which of these can not be used for a variable name in Java?
Where is array stored in memory?
What of the following is the default value of an instance variable?
Which of these cannot be declared static?
What allows the programmer to destroy an object x?
Which function is used to perform some action when the object is to be destroyed?
Which of these method of String class can be used to test to strings for equality?
Which of the following statements are incorrect?
Arrays in Java are implemented as
Overloaded methods are differentiated by
In java, gc() method is available in which package
How many keywords are available in java
Which is not a valid keyword in java?
Which of the following is a class in Java?
In Java, which of the following data type groups are of same size?
What would be the behaviour if this() and super() used in a method?
What is not the use of “this” keyword in Java?
Which of the following statements are incorrect?
Which of these data type value is returned by equals() method of String class?
The String method compareTo() returen which value
String str="abcde"; System.out.println(str.substring(1,3); what will be the output?
Any changes made to static data member from one member function _____________
Whenever any static data member is declared in a class ______________________
Data type long literals are appended by _____
Which one of the following is false for static method
The destination type is smaller than source type
prototype()
String objects are immutable, they cannot be changed
signed
0x99fffL
identifier
heap space
null
class
x.delete()
finalize()
isequal()
String is a class.
class
Number of arguments
ava.lang package
35
null
int
int and long
Runtime error
Passing itself to another method
default constructor is called at the time of object declaration
char
1
abc
Is reflected to only the corresponding object
Only one copy of the data is created
Uppercase L
they can call another static method
The destination type is larger than source type
prototype(void)
String object can point to some other reference of String variable
unsigned
ABCDEFG
keyword
stack space
0
object
x.finalize()
delete()
isequals()
Strings in java are mutable.
object
Data type of arguments
java.util package
55
transient
String
long and float
Throws exception
Calling another constructor in constructor chaining
Constructor can be parameterized
int
0
bc
Is reflected to all the variables in a program
New copy for each object is created
Lowercase L
they can only access static data
The destination type can be larger or smaller than source type
public prototype(void)
StringBuffer class is used to store string in a buffer for later use
both
0x99fffa
identifier & keyword
heap space and stack space
depends on type of variable
variable
Runtime.getRuntime().gc()
main()
equal()
Every string is an object of class String
variable
Number and the Data type of the arguments
java.awt package
53
synchronized
short
float and double
compile time error
Referring to the instance variable when local variable has the same name
finalize() method is called when a object goes out of scope and is no longer needed
boolean
an int value
bcd
Is reflected to all the objects of that class
New memory location is allocated with each object
Long
static method can be accessed with class name.
None of the mentioned b
public prototype( ) d
None of the mentioned c
None of the mentioned a
99671246 a
none of the mentioned b
first generation memory a
not assigned c
method b
Only the garbage collection system can destroy an object d
None of the mentioned a
equals() d
Java defines a peer class of String, called StringBuffer, which allows string to be altered b
None of the mentioned b
None of the above c
java.io package a
130 c
native a
double b
int and float d
Runs successfully c
Passing itself to method of the same class d
finalize() method must be declared protected c
all of the above c
0 c
abcd b
Is constant to that function only c
Only one object uses the static data a
Both A and B d
they can only access dynamic data d

Вам также может понравиться