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 →

Using Pairs or 2-tuples in Java

What built-in or library-based options allow developers to store and work with two related values together in a clean and type-safe way?

Java

3 Answers · 801 Views · Answered ✓

Asked by: MyMilestone Card · 11 months ago

How can I print to the console using JavaScript?

What built-in functions allow developers to log output, debug code, and track values during program execution?

Java

2 Answers · 1.3K Views · Answered ✓

Asked by: MaryKayInTouch · 11 months ago

Initialization of an ArrayList in one line

What are the different one-line initialization techniques that help us quickly create and populate ArrayLists for efficient coding?

Java

4 Answers · 1.1K Views · Answered ✓

Asked by: Justin Stewart · 11 months ago

[removed] Upload file

How can you upload a file in JavaScript using modern web APIs?What methods allow users to select files from their device and send them to a server…

Java

1 Answer · 351 Views · Answered ✓

Asked by: onetrackball epromotion · 11 months ago

How to create correct JSONArray in Java using JSONObject

How can you properly create a JSONArray in Java using JSONObject from the JSON library?What is the correct structure and approach to combine multiple…

Java

2 Answers · 885 Views · Answered ✓

Asked by: Mark Johnson · 11 months ago

&& (AND) and || (OR) in IF statements

How do && (AND) and || (OR) operators work in if statements, and when should you use them? These logical operators allow you to combine multiple…

Java

2 Answers · 706 Views · Answered ✓

Asked by: AI Facebook Ad Generator · 1 year ago

What is “assert” in JavaScript?

How does the assert function work in JavaScript, and what role does it play in debugging? It’s a handy tool that helps developers verify conditions…

Java

1 Answer · 550 Views · Answered ✓

Asked by: Jessica Gibson · 1 year ago

Sorting array with sort function

How does the sort() function work when sorting an array, and what rules does it follow for ordering elements? In most languages like JavaScript,…

Java

1 Answer · 424 Views · Answered ✓

Asked by: jame lily · 1 year ago

How do I remove a key from a JavaScript object?

What are the different ways to remove a key from a JavaScript object, and how do they affect the object’s structure? JavaScript offers multiple…

Java

2 Answers · 1.2K Views · Answered ✓

Asked by: 44rodina · 1 year ago

How to add days to Date?

How can you add days to a date in programming or databases, and what are the simplest methods to achieve it? Different languages and systems provide…

Java

1 Answer · 536 Views · Answered ✓

Asked by: James WILLIAMS · 1 year ago

How to use OR condition in a JavaScript IF statement?

How do you use the OR condition in a JavaScript if statement, and what does it mean for decision-making? By using the logical OR operator (||), you…

Java

1 Answer · 975 Views · Answered ✓

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