Online Assessment Platform

ALL THE BEST!!!

ALL THE BEST!!!


JAVA-EFC-CHENNAI BATCH1-07TH NOVEMBER 2024

1 / 50

What is the correct way to manually request garbage collection in Java?

2 / 50

In Java, a class can contain:

3 / 50

Which block is used to specify a code that must be executed regardless of an exception being handled or not?

4 / 50

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

5 / 50

What are regexes in Java?

6 / 50

Which keyword is used to implement an interface in Java?

7 / 50

Which of the following is a correct example of method overloading?

8 / 50

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

9 / 50

What is a set in Java?

10 / 50

What is a map in Java?

11 / 50

Which keyword is used to handle exceptions in Java?

12 / 50

Which OOP principle is used to hide the internal details of an object and only expose what is necessary?

13 / 50

Which of the following is not a Java features?

14 / 50

Which of the following is true about interfaces in Java?

15 / 50

Which of the following is the correct way to exit from all nested loops?

16 / 50

Which of the following is NOT a characteristic of an object?

17 / 50

Which keyword is used for accessing the features of a package?

18 / 50

Which Java keyword is used to access the features of a package?

19 / 50

What does the java command do?

20 / 50

Which method in Java is used to check for NaN values?

21 / 50

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

22 / 50

Which of the following is a reserved keyword in Java?

23 / 50

_____ is used to find and fix bugs in the Java programs.

24 / 50

Which of the following statements is true?

25 / 50

When a finally block executed in Java?

26 / 50

What is the use of the intern() method?

27 / 50

Which of these is a non-access modifier?

28 / 50

The trim() method in Java used to ______________

29 / 50

Which of the following correctly defines a class in Java?

30 / 50

What is boolean in Java?

31 / 50

In which memory a String is stored, when we create a string using new operator?

32 / 50

Which of the following methods is used to extract the length of a stringin Java?

33 / 50

Which of the following is a marker interface?

34 / 50

Polymorphism allows us to:

35 / 50

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

36 / 50

The result of dividing by 0 in Java is _____________

37 / 50

Which OOP principle helps to reduce redundancy in code by reusing existing classes?

38 / 50

Which of the following is a primitive data type in Java?

39 / 50

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

40 / 50

Which command is used to compile a Java program?

41 / 50

Which of the following is true about the try-catch block?

42 / 50

Where are Java source files stored by convention?

43 / 50

After compilation, Java code is converted into:

44 / 50

Which of the following is used to create an object in Java?

45 / 50

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

46 / 50

Which of the following is a checked exception in Java?

47 / 50

An abstract class in Java:

48 / 50

Which of the following is NOT an application of OOP?

49 / 50

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

50 / 50

Which of these is not a valid Boolean method in Java?