Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
JAVA Interview Questions and Answers
Home
Questions
JAVA
0
votes
Which method is used to remove an element from an ArrayList in Java?
asked
May 4
in
JAVA
by
rahuljain1
arraylist
java
0
votes
Which method is used to add an element to the end of an ArrayList in Java?
asked
May 4
in
JAVA
by
rahuljain1
arraylist
java
0
votes
Which of the following is a data structure in Java that stores elements in a linked list?
asked
May 4
in
JAVA
by
rahuljain1
stores
elements
linked-list
0
votes
Which of the following is a data structure in Java that stores elements in a resizable array?
asked
May 4
in
JAVA
by
rahuljain1
resizable
array
0
votes
Which of the following is a data structure in Java that stores elements in a fixed-size array?
asked
May 4
in
JAVA
by
rahuljain1
fixed-size
array
0
votes
Which of the following is used to skip an iteration in a loop in Java?
asked
May 4
in
JAVA
by
rahuljain1
iteration-loop
java
0
votes
Which of the following is used to exit a loop in Java?
asked
May 4
in
JAVA
by
rahuljain1
exit-loop
java
0
votes
Which of the following is NOT a type of loop in Java?
asked
May 4
in
JAVA
by
rahuljain1
type-loop
java
0
votes
Which keyword is used to indicate that a method can throw an exception?
asked
May 4
in
JAVA
by
rahuljain1
method
can
throw-exception
0
votes
Which method is used to catch any type of exception in Java?
asked
May 4
in
JAVA
by
rahuljain1
type
of
exception
0
votes
Which keyword is used to throw an exception in Java?
asked
May 4
in
JAVA
by
rahuljain1
exception
java
0
votes
What is the purpose of the “finally” block in a try-catch-finally statement in Java?
asked
May 4
in
JAVA
by
rahuljain1
block
in
a
try-catch-finally
statement
0
votes
Which of the following is NOT a type of exception in Java?
asked
May 4
in
JAVA
by
rahuljain1
type
exception
0
votes
Which method is used to concatenate two strings in Java?
asked
May 4
in
JAVA
by
rahuljain1
concatenate
two
strings
0
votes
Which interface is used to represent an immutable set of characters in Java?
asked
May 4
in
JAVA
by
rahuljain1
immutable
set
of
characters
0
votes
Which of the following is a benefit of using modules in Java 9?
asked
May 4
in
JAVA
by
rahuljain1
modules
in
java
9
0
votes
What is the purpose of the “requires” keyword in a module-info.java file?
asked
May 2
in
JAVA
by
Robin
requires
keyword
0
votes
What is the purpose of the “exports” keyword in a module-info.java file?
asked
May 2
in
JAVA
by
Robin
exports
keyword
0
votes
Which keyword is used to declare a module in Java 9?
asked
May 2
in
JAVA
by
Robin
keyword
0
votes
What is the module system introduced in Java 9?
asked
May 2
in
JAVA
by
Robin
java
9
0
votes
Which of the following interfaces represents a function that accepts an int-valued argument and produces a result of the specified type in Java 8?
asked
May 2
in
JAVA
by
Robin
int-valued
argument
0
votes
Which of the following is true about the Optional.orElse() method in Java 8?
asked
May 2
in
JAVA
by
Robin
optional
orelse
method
0
votes
Which of the following interfaces represents a consumer of double-valued arguments in Java 8?
asked
May 2
in
JAVA
by
Robin
double-valued
arguments
0
votes
Which of the following is true about the Stream.flatMap() method in Java 8?
asked
May 2
in
JAVA
by
Robin
stream
flatmap
method
0
votes
Which of the following interfaces represents a consumer of long-valued arguments in Java 8?
asked
May 2
in
JAVA
by
Robin
long-valued
arguments
0
votes
Which of the following interfaces represents a function that accepts a boolean-valued argument and produces a result of the specified type in Java 8?
asked
May 2
in
JAVA
by
Robin
boolean-valued
argument
0
votes
Which of the following is true about the Stream.sorted() method in Java 8?
asked
May 2
in
JAVA
by
Robin
stream
sorted
method
0
votes
Which of the following interfaces represents a function that accepts a double-valued argument and produces a result of the specified type in Java 8?
asked
May 2
in
JAVA
by
Robin
double-valued
argument
0
votes
Which of the following is true about the Stream.collect() method in Java 8?
asked
Apr 30
in
JAVA
by
john ganales
stream
collect
method
0
votes
Which of the following interfaces represents a function that accepts a long-valued argument and produces a result of the specified type in Java 8?
asked
Apr 30
in
JAVA
by
john ganales
long-valued
argument
Page:
« prev
1
2
3
4
5
6
7
8
...
61
next »
...