← Back to programming

Java Basics

8 Questions • Study Mode

Advertisement
Ad Space - top

Showing questions 1 - 8 of 8

Question 1Easy

Which of the following is not a Java keyword?

OCJPTechnical Interview
Question 2Easy

What is the default value of a boolean variable in Java?

OCJPInterviews
Question 3Medium

Which method must be implemented by all threads in Java?

OCJPTechnical Interview
Advertisement
Ad Space - middle
Question 4Easy

What is the range of byte data type in Java?

OCJP
Question 5Medium

Which of these access modifiers can be used for an interface?

OCJPInterviews
Question 6Medium

What will be the output of: System.out.println(10 + 20 + "Java" + 30 + 40);

Technical Interview
Advertisement
Ad Space - middle
Question 7Easy

Which exception is thrown when an array is accessed with an invalid index?

OCJPInterviews
Question 8Medium

Can we override static methods in Java?

OCJPTechnical Interview
Advertisement
Ad Space - bottom