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 do I format a date in JavaScript?

How can you easily format dates in JavaScript to match your preferred style? What are the built-in methods and libraries available to help you…

Java

2 Answers · 620 Views · Answered ✓

Asked by: Sam Fraser · 1 year ago

Loop through an array in JavaScript

Want to process or display each item in a JavaScript array but not sure which looping method is best? Let’s explore how to iterate over arrays using…

Java

1 Answer · 657 Views · Answered ✓

Asked by: Jake CARTER · 1 year ago

#define in Java

If you're coming from a C or C++ background, you might be wondering how Java handles constants or macros since it doesn’t support #define. So, what’s…

Java

1 Answer · 1.1K Views · Answered ✓

Asked by: ananya Pawar · 1 year ago

Clothing Store Lesson from CodeHS

Are you exploring the basics of programming through CodeHS? The Clothing Store lesson introduces key concepts like variables, user input, and basic…

Java

2 Answers · 608 Views · Answered ✓

Asked by: Nabha shahin · 1 year ago

Can I nest button inside another button?

Is it possible to place a button inside another button in HTML? How does nesting buttons affect functionality and accessibility? Let’s explore…

Java

1 Answer · 1.3K Views · Answered ✓

Asked by: Natalie · 1 year ago

max value of integer

Ever wondered what the maximum value an integer can hold in different programming languages? How does it vary between 32-bit and 64-bit systems?…

Java

1 Answer · 1.9K Views · Answered ✓

Asked by: Aj · 1 year ago

Java - Convert integer to string [duplicate]

Trying to convert an integer to a string in Java? This guide explains quick and easy ways to perform the conversion using methods like…

Java

1 Answer · 473 Views · Answered ✓

Asked by: Jennifer Fraser · 1 year ago

How do I compare strings in Java?

Wondering how to compare strings in Java? This guide explains different ways to compare strings, including equals(), ==, and compareTo(), and when to…

Java

1 Answer · 994 Views · Answered ✓

Asked by: Satou Samassa · 1 year ago

How do I convert a String to an int in Java?

How to Convert a String to an int in Java In Java, you can convert a String to an int using different methods, depending on the use case. 1. Using…

Java

1 Answer · 1.1K Views · Answered ✓

Asked by: Nathaniel Tyson · 1 year ago

How can I build/concatenate strings in JavaScript?

You can concatenate strings in JavaScript using:+ operator: "Hello" + " World"Template literals: `Hello ${name}` (recommended for readability)

Java

1 Answer · 474 Views · Answered ✓

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