Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java

Java Questions & Answers

Browse 679 Java questions and answers from learners and industry experts. Find practical fixes, interview prep and step-by-step solutions - or ask your own.

679Discussions
809Answers
2Waiting for an answer
Ask a Java Question →

In laymans terms, what does 'static' mean in Java?

How does the static keyword work in Java, and why is it used so often in programs? This concept can seem confusing at first, but understanding it in…

Java

1 Answer · 1.0K Views · Answered ✓

Asked by: RethaWisozk · 1 year ago

How to filter an array in array of objects in Javascript?

This question explains how to use the filter() method to extract objects from an array that meet certain criteria—such as matching values, ranges, or…

Java

2 Answers · 465 Views · Answered ✓

Asked by: Neeraj Thakur · 1 year ago

What does "?" mean in Java?

This question explains the usage of the ? symbol in Java, especially in generics and ternary operations, and clarifies how it contributes to…

Java

2 Answers · 858 Views · Answered ✓

Asked by: Liam Dyer · 1 year ago

How do I get a timestamp in JavaScript?

This question explores how to retrieve the current time in JavaScript as a timestamp (milliseconds since epoch), and explains common methods like…

Java

1 Answer · 676 Views · Answered ✓

Asked by: Jaden Preston · 1 year ago

Does Java support default parameter values

How does Java handle default parameter values in methods?This question explores whether Java supports default values for method parameters and…

Java

1 Answer · 1.4K Views · Answered ✓

Asked by: Kira Mcelvain · 1 year ago

Converting array to list in Java

This question explores different ways to transform arrays into lists in Java using methods like Arrays.asList() and List.of(), along with tips on…

Java

2 Answers · 1.6K Views · Answered ✓

Asked by: Neetu Sharma · 1 year ago

javascript fold reduce functional programming

What is the role of reduce (or fold) in JavaScript functional programming? This question explores how the reduce() method works in JavaScript,…

Java

1 Answer · 535 Views · Answered ✓

Asked by: justinbieber · 1 year ago

JavaScript sleep/wait before continuing

How can you make JavaScript wait or sleep before executing the next line of code?This question explores ways to pause execution in JavaScript using…

Java

1 Answer · 538 Views · Answered ✓

Asked by: Madeline Heathcote · 1 year ago

Switch case in a JavaScript function

How do you use a switch case inside a JavaScript function? What are the benefits of using switch statements over if-else chains for decision-making…

Java

1 Answer · 460 Views · Answered ✓

Asked by: Morita Miyamoto · 1 year ago

Download File Using JavaScript/jQuery

How can you download a file using JavaScript or jQuery in the browser?What are the different ways to trigger file downloads programmatically with or…

Java

1 Answer · 819 Views · Answered ✓

Asked by: Shana Khan · 1 year ago

Java 8 List into Map

What are the most efficient ways to perform this transformation using streams and lambda expressions?

Java

1 Answer · 731 Views · Answered ✓

Asked by: Alicia · 1 year ago

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.

Explore other technologies

Pick another topic to find answers, interview questions, and real-world tips.