Most viewed questions in Java

3 votes
3 answers
4
Which of these is a super class of all errors and exceptions in the Java language?Runtime ExceptionsThrowableCatchableNone of the above
3 votes
1 answer
6
The built-in base class in java, which is used to handle all exceptions isRaiseExceptionErrorThrowable
1 votes
2 answers
7
Which methods are utilized to control the access to an object in multi-threaded programming ? Asynchronized methods Synchronized methods Serialized methodsNone of the abo...
5 votes
3 answers
10
In Java, after executing the following code what are the values of x, y and z?int x,y=10; z=12;x=y++ + z++;x=22, y=10, z=12x=24, y=10, z=12x=24, y=11, z=13x=22, y=11, z=1...
7 votes
2 answers
11
Find the output of the following Java code line System.out.printIn(math.floor(-7.4))-7-8-7.4-7.0
4 votes
1 answer
12
What is the output of the following program?Class Test { public static void main (String [] args) { int x = 0; int y = 0 for (int z = 0; z < 5; z++) { if((++x >2)||(++y ...
0 votes
1 answer
13
What is the output of this program? class Conversion { public static void main(String args[]) { double a = 295.04; int b = 300; byte c = (byte) a; byte d = (byte) b; Syst...
1 votes
1 answer
14
2 votes
3 answers
15
1 votes
2 answers
16
1 votes
1 answer
18
Which of the following methods from Object is final ( that it cannot be overriden ) ?(A) finalize method(B) clone method(C) hashCode method(D) getClass method
1 votes
2 answers
20
Match the following interfaces of Java. Servlet package $:$$\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II}\\ \text{a.}& \text{Servlet config} & \text{i...