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 →

How to parse JSON in Java

Parsing JSON in Java can seem tricky at first, but with the right tools like Jackson or Gson, it becomes simple and efficient. This guide explains…

Java

3 Answers · 983 Views · Answered ✓

Asked by: Neeraj Thakur · 1 year ago

How to make an array of arrays in Java

In Java, what if you need to store tabular or matrix-like data? Understanding how to make an array of arrays—also known as a 2D array—can help you…

Java

1 Answer · 740 Views · Answered ✓

Asked by: Manish Nagar · 1 year ago

How to convert a string to an integer in JavaScript?

How do you convert a string into an integer in JavaScript? What are the methods available, and how do they handle different types of strings? Let’s…

Java

1 Answer · 800 Views · Answered ✓

Asked by: tom Ellison · 1 year ago

How to append something to an array?

What are the different ways to add elements to an array depending on the programming language you're using? Learn how appending works in languages…

Java

1 Answer · 652 Views · Answered ✓

Asked by: Krowd Darden · 1 year ago

JavaScript equivalent to printf/String.Format

Are you wondering how to format strings in JavaScript similar to printf in C or String.Format in C#? JavaScript offers several ways to embed…

Java

1 Answer · 984 Views · Answered ✓

Asked by: ROHIT Jhadav · 1 year ago

Loop (for each) over an array in JavaScript

Want to perform actions on every item in a JavaScript array? Learn how the forEach() method and other looping techniques like for, for...of, and…

Java

1 Answer · 432 Views · Answered ✓

Asked by: John Smith · 1 year ago

How to initialize an array in Java?

When working with arrays in Java, knowing how to properly initialize them is crucial. Whether you're assigning values directly or using loops,…

Java

1 Answer · 381 Views · Answered ✓

Asked by: Nsofini · 1 year ago

What is the JavaScript version of sleep()?

What is the JavaScript equivalent of sleep(), and how can you pause code execution?Ever wanted to delay your code in JavaScript like you would with…

Java

1 Answer · 946 Views · Answered ✓

Asked by: Jean Claude · 1 year ago

Compare two dates with JavaScript

How can you compare two dates using JavaScript, and what methods are available?Want to check if one date comes before, after, or equals another in…

Java

1 Answer · 635 Views · Answered ✓

Asked by: OliviaParkerr · 1 year ago

Java switch use case

How is the switch statement used in Java, and when should you use it?Curious about how to handle multiple conditions more cleanly in Java? The switch…

Java

4 Answers · 625 Views · Answered ✓

Asked by: NISHA arti · 1 year ago

are there dictionaries in javascript like python?

How does JavaScript handle key-value pairs like Python dictionaries? What built-in objects or structures can you use to store and access data in a…

Java

1 Answer · 646 Views · Answered ✓

Asked by: JermainOkuneva · 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.