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
Q: Which method is used to concatenate the elements of a stream into a single string in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
single
string
java
0
votes
Q: Which method is used to transform elements in a stream in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
stream
java
0
votes
Q: Which method is used to filter elements in a stream based on a given predicate in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
predicate
java
0
votes
Q: Which method is used to create a stream from a collection in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
collection
java
0
votes
Q: Which method is used to create a stream from an array in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
createstream
0
votes
Q: Which interface is used to represent a function that does not return a result in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
result
java
0
votes
Q: Which interface is used to represent a unary operator (a function that takes one argument and returns a result of the same type) in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
unary
operator
0
votes
Q: Which interface is used to represent a binary operator (a function that takes two arguments and returns a result of the same type) in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
arguments
java
0
votes
Q: Which interface is used to represent a function that takes two arguments and returns a result in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
arguments
returns
0
votes
Q: Which interface is used to represent a predicate (a function that returns a boolean value) in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
boolean
value
0
votes
Q: Which interface is used to represent a supplier of results in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
supplier
results
java
0
votes
Q: Which of the following is NOT a method of the Function interface in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
function
interface
java
0
votes
Q: Which interface is used to define functional interfaces in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
functional
interfaces
java
0
votes
Q: Which of the following is NOT a type of method reference in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
method
reference
java
0
votes
Q: Which of the following is a keyword used to define a lambda expression in Java?
answered
May 5
in
JAVA
by
sharadyadav1986
lambda
expression
java
0
votes
Q: Which method is used to remove an element from an ArrayList in Java?
answered
May 4
in
JAVA
by
rahuljain1
arraylist
java
0
votes
Q: Which method is used to add an element to the end of an ArrayList in Java?
answered
May 4
in
JAVA
by
rahuljain1
arraylist
java
0
votes
Q: Which of the following is a data structure in Java that stores elements in a linked list?
answered
May 4
in
JAVA
by
rahuljain1
stores
elements
linked-list
0
votes
Q: Which of the following is a data structure in Java that stores elements in a resizable array?
answered
May 4
in
JAVA
by
rahuljain1
resizable
array
0
votes
Q: Which of the following is a data structure in Java that stores elements in a fixed-size array?
answered
May 4
in
JAVA
by
rahuljain1
fixed-size
array
0
votes
Q: Which of the following is used to skip an iteration in a loop in Java?
answered
May 4
in
JAVA
by
rahuljain1
iteration-loop
java
0
votes
Q: Which of the following is used to exit a loop in Java?
answered
May 4
in
JAVA
by
rahuljain1
exit-loop
java
0
votes
Q: Which of the following is NOT a type of loop in Java?
answered
May 4
in
JAVA
by
rahuljain1
type-loop
java
0
votes
Q: Which keyword is used to indicate that a method can throw an exception?
answered
May 4
in
JAVA
by
rahuljain1
method
can
throw-exception
0
votes
Q: Which method is used to catch any type of exception in Java?
answered
May 4
in
JAVA
by
rahuljain1
type
of
exception
0
votes
Q: Which keyword is used to throw an exception in Java?
answered
May 4
in
JAVA
by
rahuljain1
exception
java
0
votes
Q: What is the purpose of the “finally” block in a try-catch-finally statement in Java?
answered
May 4
in
JAVA
by
rahuljain1
block
in
a
try-catch-finally
statement
0
votes
Q: Which of the following is NOT a type of exception in Java?
answered
May 4
in
JAVA
by
rahuljain1
type
exception
0
votes
Q: Which method is used to concatenate two strings in Java?
answered
May 4
in
JAVA
by
rahuljain1
concatenate
two
strings
0
votes
Q: Which interface is used to represent an immutable set of characters in Java?
answered
May 4
in
JAVA
by
rahuljain1
immutable
set
of
characters
To see more, click for all the
questions in this category
.
...