Online Assessment Platform

ALL THE BEST!!!

ALL THE BEST!!!


JAVA EC MADURAI-NOV BATCH -202ND FEB 2025

1 / 50

Array in Java is ______________

2 / 50

Can we keep a different name for the java class name and java file
name?

3 / 50

Can the Java program accept input from the command line?

4 / 50

Which of the following ways is the correct way to create an object
in Java?

5 / 50

What will happen if an exception is thrown and not caught in a try-catch block?

6 / 50

Which method is used to get the length of a String in Java?

7 / 50

Which method is used to round off a floating-point number to the nearest integer in Java?

8 / 50

What are the types of memory allocated in memory in java?

9 / 50

Which of the following is a valid conditional statement in Java?

10 / 50

What are packages in Java?

11 / 50

JRE stands for _______________

12 / 50

Static variables in java are declared as __________________

13 / 50

JDK stands for _________________

14 / 50

Which of the following statements is true?

15 / 50

Which operator is used to check multiple conditions in a single if statement?

16 / 50

Which of the following statements is used to exit a loop prematurely?

17 / 50

What makes the Java platform independent?

18 / 50

BigInteger Class is used to ____________

19 / 50

Which of these is the correct method to create an array in java?

20 / 50

Which keyword is used to inherit classes in Java?

21 / 50

Which keyword in Java is used for exception handling?

22 / 50

Which of the following inheritance of class is invalid in Java?

23 / 50

Which of the following is a correct way to declare an abstract method in Java?

24 / 50

Can we write a program without a main method in Java?

25 / 50

Enumeration in Java is ______________

26 / 50

What is garbage collection in Java?

27 / 50

Can the main() method be overloaded in Java?

28 / 50

Which of the following is true about String objects in Java?

29 / 50

Which keyword is used to implement an interface in Java?

30 / 50

Can we pass objects to method arguments in Java?

31 / 50

What will be the output of the following Java code?

public class Main {
public static void main(String arg[]) {
int i;
for (i = 1; i <= 12; i +=2)

{ if (i == 8) {
System.out.println(i);
break;
}
}
}
}

32 / 50

What does the concat() method do in Java?

33 / 50

Which of the following is the correct syntax for an if-else statement in Java?

34 / 50

Which statement is used to specify a block of code that will be executed regardless of the conditions in a try-catch block?

35 / 50

'this' keyword in java is ______________

36 / 50

Which of the following methods is used to calculate the power of a number in Java?

37 / 50

Which statement is correct for private member in Java?

38 / 50

The 'implements' keyword is used to ________________

39 / 50

Object in java are __________

40 / 50

Which loop in Java checks the condition after executing the loop's body?

41 / 50

Which method is used to return the maximum of two numbers in Java?

42 / 50

What is the entry point of a program in Java?

43 / 50

Multiline comment is created using ________________

44 / 50

What is polymorphism in Java?

45 / 50

Which method is used to find the absolute value of a number in Java?

46 / 50

Which of the following is true about interfaces in Java?

47 / 50

Which method is used to compare two strings in Java?

48 / 50

The break statement in Java is used to ______________

49 / 50

Empty interface in Java is called?

50 / 50

An abstract class in Java: