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 check for null values in JavaScript?

How can you check for null values in JavaScript, and what's the best way to differentiate it from undefined or other falsy values? What methods or…

Java

1 Answer · 560 Views · Answered ✓

Asked by: selpinka · 1 year ago

How do I empty an array in JavaScript?

How can you empty an array in JavaScript effectively? What are the different methods to clear all elements from an array and when should you use each…

Java

1 Answer · 750 Views · Answered ✓

Asked by: Rohit Arora · 1 year ago

length and length() in Java

What is the difference between length and length() in Java, and when should you use each? Understand how Java treats arrays and strings differently…

Java

1 Answer · 1.3K Views · Answered ✓

Asked by: Richard Miller · 1 year ago

What is a NullPointerException, and how do I fix it?

What is a NullPointerException in Java, and how can you identify and fix it effectively? Discover why this common runtime error occurs, what causes…

Java

1 Answer · 600 Views · Answered ✓

Asked by: Niharika Deshpande · 1 year ago

Format date using moment Angularjs

How can you format dates in AngularJS using the Moment.js library, and what are the common methods for displaying dates in different formats? Learn…

Java

1 Answer · 580 Views · Answered ✓

Asked by: MyJDW · 1 year ago

Getting random numbers in Java

How can you generate random numbers in Java, and what are the different methods available? Explore what classes like Random and Math.random() offer…

Java

0 Answers · 649 Views · Unanswered

Asked by: Pranav Balasubramanium · 1 year ago

Reading a plain text file in Java

How can you read a plain text file in Java, and what are the different methods available? Learn what classes like BufferedReader, Scanner, and Files…

Java

3 Answers · 517 Views · Answered ✓

Asked by: Jean Claude · 1 year ago

Does Java have an exponential operator?

Does Java support an exponential operator like some other programming languages do? If not, what are the alternative ways to perform exponentiation…

Java

1 Answer · 1.4K Views · Answered ✓

Asked by: Reyou Nimok · 1 year ago

Enums in Javascript with ES6

What are enums in JavaScript and how can you implement them using ES6 features? While JavaScript doesn’t have built-in enums like some other…

Java

1 Answer · 628 Views · Answered ✓

Asked by: Kingsley · 1 year ago

How to find the sum of an array of numbers

How can you find the sum of an array of numbers in programming? Learn how to use loops or built-in functions to efficiently calculate the total of…

Java

1 Answer · 463 Views · Answered ✓

Asked by: Owen Welch · 1 year ago

Boolean vs boolean in Java

What is the difference between Boolean and boolean in Java? Learn how boolean is a primitive data type for storing true/false values, while Boolean…

Java

1 Answer · 1.8K Views · Answered ✓

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