JAVA TEST

Progress

1.

HTML uses

2.

JDBC stands for?

3.

RESTful web services must be stateful

4.

What happens if Restful resources are accessed by multiple clients?

5.

What does SDLC stands for?

6.

JVM stands for?

7.

What tag is used to display a picture in a HTML page?

8.

Which HTTP method should be used to update a resource in a RESTful Web Service?

9.

What will this code print?
 int arr[] = new int [5];
 System.out.print(arr);

10.

Evaluate the following Java expression, if x=3, y=5, and z=10: ++z + y - y + z + x++

11.

What does the expression float a = 35 / 0 return?

12.

In java, “this” keyword is used to

13.

What will be the output of the following program?
public class Test { 
public static void main(String[] args) { 
    int count = 1; 
    while (count <= 15) { 
    System.out.println(count % 2 == 1 ? "***" : "+++++"); 
    ++count; 
        }      // end while 
    }       // end main  
 }  

14.

Garbage collection in Java is

15.

Generally string is a sequence of characters, But in java, string is an _______.

16.

In which the access modifier means that the field can be accessed by all classes in your application?

17.

What is garbage collection in the context of Java?

18.

Which of the following option leads to the portability and security of Java?

19.

Which of this access specifies can be used for a class so that its members can be accessed by a different class in the same package?

20.

try, catch, finally, throw, and throws keywords in java are related to

21.

In Iterator, hasMoreElements() method of Enumeration has been changed to:

22.

Guess the output of below program.
package org.arpit.java2blog;
class A
{
    void m1()
    {
        System.out.println("In m1 A");
    }
}
class B extends A
{
    void m1()
    {
        System.out.println("In m1 B");
    }
    void m2()
    {
        System.out.println("In m2 B");
    }
}
public class Test {
 
    public static void main(String[] args) {
        A a=new B();
        a.m2();
    }
}
What will be the output?

23.

How would you configure a RESTful URL parameter that supports a search for a book based on its ID?

24.

Which of these method of Thread class is used to find out the priority given to a thread?

25.

What will be the output of the following code snippet?

int a=15;

int b=25;

if ((a < b ) || ( a = 5)>15)

system.out.println(a);

else

system.out.println(b);

26.

Which of these is a super class of all errors and exceptions in the Java language?

27.

HashSet internally uses?

28.

When does Exceptions in Java arises in code sequence?

29.

Which of the following for loop declaration is not valid?

30.

What will be the output of the following Java program, Command line exceution is done as – “java Output This is a command Line”?
class Output
    {
        public static void main(String args[])
        {
            System.out.print(""args[3]"");
        }
    }

31.

Which option is not a RESTful API constraint?

32.

What must be enabled in order for a RESTful web service to receive invocations from different domains, subdomains or ports?

33.

Which header should be configured to tell the server XML is preferred over JSON?

34.

The default value of a static integer variable of a class in Java is,

35.

Which annotation is used to represent command line input and assigned to correct data type?

36.

The insistence that RESTful APIs have URLs that identify resources in a consistent and predictable manner is known as:

37.

Which exception is thrown when divide by zero statement executes?

38.

What is the output for the following code, when you passed letsfindcourse at run time?
class CommandLineExample{  
public static void main(String args[]){  
System.out.println(""Your first argument is: ""+args[0]);  
}  

39.

What is byte code in the context of Java?

40.

_______ is not a flow control statement in Java. 

Assessment complete! Thank you for you time.
We are redirecting you to the result page, Please click on 'SUBMIT'