Core Java Questions
Q. Which collection class allows duplicate elements?
View SolutionQ. What is the output of System.out.println(Math.random());?
View SolutionQ. Which of the following is a marker interface in Java?
View SolutionQ. What is the output of System.out.println(‘a’ + ‘b’);?
View SolutionQ. Which method is used to start a thread in Java?
View SolutionQ. Which of these is a valid declaration of a two-dimensional array?
View SolutionQ. What will happen if an exception is not handled in a Java program?
View SolutionQ. Which keyword is used to inherit a class in Java?
View SolutionQ. Why are String objects in Java considered immutable?
View SolutionQ. Which method of the String class would you use to get the number of characters in a string?
View SolutionGet Question Bank
Strengthen Your Practice with our comprehensive question bank.