Java Programming Free Certification
A potent general-purpose programming language is Java. It is utilised to create embedded devices, massive data processing, desktop and mobile applications, and more. Java is one of the most widely used programming languages, with 3 billion devices running it globally, according to Oracle, the corporation that owns Java.
Get Java Programming Certificate from The Digital Adda which you can share in the Certifications section of your LinkedIn profile, on printed resumes, CVs, or other documents.
Exam Details:
- Format: Multiple Choice Question
- Questions: 10
- Passing Score: 8/10 or 80%
- Language: English
Question 1: Number of primitive data types in Java are?
- 6
- 7
- 8
- 9
Question 2: What is the size of float and double in java?
- 32 and 64
- 32 and 32
- 64 and 64
- 64 and 32
Question 3: Find the output of the following code.
int Integer = 24;
char String = ‘I’;
System.out.print(Integer);
System.out.print(String);
- Compile error
- Throws exception
- I
- 24 I
Question 4: Select the valid statement.
- char[] ch = new char(5)
- char[] ch = new char[5]
- char[] ch = new char()
- char[] ch = new char[]
Question 5: When an array is passed to a method, what does the method receive?
- The reference of the array
- A copy of the array
- Length of the array
- Copy of first element
Question 6: Select the valid statement to declare and initialize an array.
- int[] A = {}
- int[] A = {1, 2, 3}
- int[] A = (1, 2, 3)
- int[][] A = {1,2,3}
Question 7: Arrays in java are-
- Object references
- Objects
- Primitive data type
- None
Question 8: When is the object created with new keyword?
- At run time
- At compile time
- Depends on the code
- None
Question 9: In which of the following is toString() method defined?
- java.lang.Object
- java.lang.String
- java.lang.util
- None
Question 10: compareTo() returns
- True
- False
- An int value
- None