Online Assessment Platform

ALL THE BEST!!!

ALL THE BEST!!!


JAVA-EFC-CHENNAI BATCH1-07TH NOVEMBER 2024

1 / 50

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

2 / 50

After compilation, Java code is converted into:

3 / 50

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

4 / 50

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

5 / 50

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

6 / 50

Which of the following correctly defines a class in Java?

7 / 50

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

8 / 50

What is a map in Java?

9 / 50

Which keyword is used to handle exceptions in Java?

10 / 50

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

11 / 50

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

12 / 50

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

13 / 50

Which of the following statements is true?

14 / 50

What is the use of the intern() method?

15 / 50

Polymorphism allows us to:

16 / 50

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

17 / 50

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

18 / 50

What are regexes in Java?

19 / 50

Which of the following is not a Java features?

20 / 50

What is a set in Java?

21 / 50

Which of the following is a reserved keyword in Java?

22 / 50

Which of these is a non-access modifier?

23 / 50

The result of dividing by 0 in Java is _____________

24 / 50

Which of the following is true about interfaces in Java?

25 / 50

Which command is used to compile a Java program?

26 / 50

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

27 / 50

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

28 / 50

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

29 / 50

When a finally block executed in Java?

30 / 50

Which of the following is a marker interface?

31 / 50

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

32 / 50

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

33 / 50

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

34 / 50

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

35 / 50

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

36 / 50

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

37 / 50

In Java, a class can contain:

38 / 50

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

39 / 50

What does the java command do?

40 / 50

An abstract class in Java:

41 / 50

What is boolean in Java?

42 / 50

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

43 / 50

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

44 / 50

Which of the following is a checked exception in Java?

45 / 50

The trim() method in Java used to ______________

46 / 50

Where are Java source files stored by convention?

47 / 50

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

48 / 50

Which keyword is used to implement an interface in Java?

49 / 50

Which of the following is NOT an application of OOP?

50 / 50

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