Search Header Logo
Java Programming

Java Programming

Assessment

Flashcard

Computers

University

Practice Problem

Hard

Created by

vijetha c

FREE Resource

Student preview

quiz-placeholder

23 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which method is given parameters via command line arguments?

Back

main()

2.

FLASHCARD QUESTION

Front

What are the Type Conversions available in Java language?

Back

Narrowing Type Conversion and Widening Type Conversion

3.

FLASHCARD QUESTION

Front

To check whether a string ends with a specific suffix like .txt or .com, the ________________ method is used.

Back

endsWith()

4.

FLASHCARD QUESTION

Front

What is the output of the below Java code snippet? char ch = 'A';//ASCII 65 int a = ch + 1; ch = (char)a; System.out.println(ch);

Back

B

5.

FLASHCARD QUESTION

Front

Which type of loop is best known for its boolean condition that controls entry to the loop?

Back

D. while

6.

FLASHCARD QUESTION

Front

What will be the output of the following code?
public class Demo{
public static void main(String[] arr){

}
public static void main(String arr){

}
}

Back

Nothing

7.

FLASHCARD QUESTION

Front

The ___________________________ class in Java, located in the java.util package, is designed to break a string into smaller parts called tokens.

Back

StringTokenizer

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?