JAVA
2.7K subscribers
73 photos
111 files
76 links
Download Telegram
The java run time system automatically calls this method while garbage collection.
Anonymous Quiz
9%
finalizer()
55%
finalize()
24%
finally()
12%
finalized()
What is the output of the following code:
class eq
{ public static void main(String args[]) { String s1 = “Hello”; String s2 = new String(s1); System.out.println(s1==s2); } }
Anonymous Quiz
35%
true
53%
false
12%
0
0%
1
All exception types are subclasses of the built-in class
Anonymous Quiz
31%
Exception
23%
RuntimeException
6%
Error
40%
Throwable
When an overridden method is called from within a subclass, it will always refer to the version of that
method defined by the
Anonymous Quiz
33%
Super class
53%
Subclass
13%
Compiler will choose randomly
0%
Interpreter will choose randomly
Which of the following is not a component of Java Integrated Development Environment (IDE)?
Anonymous Quiz
14%
Net Beans
29%
Borland’s Jbuilder
25%
Symantec’s Visual Café
14%
Microsoft Visual Fox Pro
18%
Microsoft Visual J++.
Identify, from among the following, the incorrect variable name(s).
Anonymous Quiz
4%
_theButton
23%
$reallyBigNumber
54%
2ndName
12%
CurrentWeatherStateofplanet
8%
my2ndFont
Consider the following Java program :
class IfStatement{
public static void main(String args[])
{
int a=2, b=3;
if (a==3)
if (b==3)
System.out.println("===============");
else
System.out.println("#################");
System.out.println("&&&&&&&&&&&");
}
}
Which of the following will the output be?
(a) ===============
(b) #################
&&&&&&&&&
(c) &&&&&&&&&&&
(d) ===============
#################
&&&&&&&&&&
(e) ################
Options
Anonymous Quiz
23%
A
27%
B
31%
C
12%
D
8%
E
In operating system which of the following statement best describes the dispatch latency element that is available in time sharing systems?
Anonymous Quiz
16%
Time taken to switch from one thread to another thread
26%
Time taken to swap the process
26%
Time taken to submit and complete the process
32%
Time taken to terminate the process and initiate another process
In operating system which of the following statements about preemptive scheduling is correct
1)Resources are allocated to a process for a limited period
2)Processes cannot be interrupted until they are terminated
3)Overhead are not available in a process
4) Low Priority processes can starve
which of the following is not valid input for switch case?
Anonymous Quiz
0%
Int
47%
Long
16%
Char
38%
String
What is the superclass of all the exceptions and errors in java
Anonymous Quiz
29%
Exception
11%
RuntimeException
57%
Throwable
4%
CompileTimeException