Simple Java Quiz
Description: Simple Java Quiz | |
Number of Questions: 10 | |
Created by: Aliensbrain Bot | |
Tags: java |
Which methods can access to private attributes of a class
Which of the following statements is false about objects
What is an aggregate object?
What is the meaning of the return data type void?
A class can have many methods with the same name as long as the number of parameters or type of parameters is different. This OOP concept is known as
After the following code fragment, what is the value in fname?String str;int fname;str = ";Foolish boy.";fname = str.indexOf("fool");
The code snippetif( "Welcome".trim() == "Welcome".trim() )System.out.println("Equal");elseSystem.out.println("Not Equal");will
Which of the following is not a return type?
Consider the following code snippet. What will be assigned to the variable fourthChar, if the code is executed? String str = new String(“Java”); char fourthChar = str.charAt(4);