Java Screening Test

A vibrant, colorful illustration that showcases a developer working on Java code, with elements representing programming concepts like exceptions, classes, and sessions in the background.

Java Screening Test

Test your Java knowledge with our comprehensive screening quiz designed for developers of all skill levels. Whether you are preparing for an interview or simply want to brush up on your skills, this quiz covers various fundamental and advanced topics in Java.

  • Assess your understanding of core concepts.
  • Engage with real-world scenarios.
  • Receive results via email for your reference.
17 Questions4 MinutesCreated by CodingFalcon321
When Exceptions in Java does arise in code sequence?
Run Time
Compilation Time
Can Occur Any Time
None of the mentioned
Which of the following can be used to fully abstract a class from its implementation?
Objects
Packages
Interfaces
None
What is the difference between Text Area and Text Field ?
A Text Area can handle multiple lines of text
A text area can be used for output
Text Area is not a class
Text areas are used for displaying graphics
What will be the output of the program? 
 

Public class Test {

      Public Static Void Main (String [] args) {

            String str = NULL;

            System.out.println (str);

} }

NULL
Complication Error
Code runs but no output
Runtime Exception
Which object of HttpSession can be used to view and manipulate information about a session?
Creation time
Session identifier
Last accessed time
All of the mentioned
What technique is used for the authentication mechanism in servlet specification?
Role Based Authentication
Form Based Authentication
Both 1 & 2
None of the above
What is the output of the program?
 

Class Expectation {

            Public Static Void Main (String [] args) {

            Try {

                         System.out.println (“Hello” +””+1/0);

            } catch (ArithmeticException e) {

                          System.out.println (“World”);

             }}}

Hello
World
HelloWorld
Hello World
Which constructs an anonymous inner class instance?
Runnable r = new Runnable () { };
Runnable r = new Runnable (public void run() { });
Runnable r = new Runnable {public void run(){}};
System.out.println (new Runnable() {public void run() { }});
In JSP Action tags which tags are used for bean development?
Jsp:useBean
Jsp:setPoperty
Jsp:getProperty
All mentioned above
What is the output of the program
 
 

Public class A {

    Public static void main (String [] args)

    {if (true)

            Break ;}}

Run without Error
Throws Error
What happens when compile and run the program?
 
 

Public class collection {

    Public static void main (String [] args) {

        List<Integer> list = new ArrayList<Integer> ();

        Integer [] arr = {2, 10, 3};

        List = Arrays.asList (arr);

        List. Set (0, 3);

        System.out.println (list);

        List. Add (1);

        System.out.println (list);

    }}

Compile time exception
Run time exception
[2,10,3] without exception
[3,10,3] followed by exception
[3,10,3,1]
What is the output of the program?
 

Public class Test {

Public static void main (String [] args) {

System.out.println (Math.min (Double.MIN_VALUE, 0.0d));

}}

Compile Time Exception
Run Time Exception
0.0
2^(-1074)
13. Can you override a private or static method in Java?
Yes
No
What does the expression 1.0 / 0.0 will return? Will it throw Exception? Any compile time error?
Throw ArithmeticException
Run Successfully without any error
Any other exception
What does the following Java program print?
 
public class Test { 

          Public static void main (String [] args) throws Exception { 

                Char [] chars = new char [] {'\u0097'}; 

                String str = new String (chars); 

                Byte [] bytes = str.getBytes (); 

                System.out.println (Arrays.toString (bytes));

                } }.

Return value of -105 ((byte) 0x97).
Result depends on the Operating System & Locale
Returns 63
None of the above
{"name":"Java Screening Test", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your Java knowledge with our comprehensive screening quiz designed for developers of all skill levels. Whether you are preparing for an interview or simply want to brush up on your skills, this quiz covers various fundamental and advanced topics in Java.Assess your understanding of core concepts.Engage with real-world scenarios.Receive results via email for your reference.","img":"https://cdn.poll-maker.com/104-5107308/img-jkdhxkbmbi35agxwwqgemc5t.jpg"}
Powered by: Quiz Maker