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 count certain elements in array?

How can you count specific elements in an array efficiently? Learn what methods different programming languages provide—like loops, built-in…

Java

1 Answer · 441 Views · Answered ✓

Asked by: Irene Ellison · 1 year ago

How to add new elements to an array?

How can you add new elements to an array in different programming languages? Learn what methods like append(), push(), or direct indexing do, and how…

Java

1 Answer · 1.7K Views · Answered ✓

Asked by: Justin Stewart · 1 year ago

What is the Java ?: operator called and what does it do?

What is the ?: operator in Java called, and how does it work in conditional expressions? Learn how this shorthand operator helps simplify if-else…

Java

1 Answer · 1.1K Views · Answered ✓

Asked by: Liam NELSON · 1 year ago

jQuery.click() vs onClick

What is the difference between jQuery.click() and onClick in JavaScript? Learn how each method works, their use cases, and which one is better for…

Java

1 Answer · 733 Views · Answered ✓

Asked by: Lily Hemmings · 1 year ago

How do I test for an empty JavaScript object?

How do you test whether a JavaScript object is empty? What methods or built-in functions can you use to check if an object has no properties?

Java

2 Answers · 785 Views · Answered ✓

Asked by: John Durso · 1 year ago

What is a node in Javascript?

What is a node in JavaScript, and how does it relate to the DOM? How are nodes used to represent elements, text, and attributes in a web page…

Java

2 Answers · 562 Views · Answered ✓

Asked by: James SCOTT · 1 year ago

Is there a CSS parent selector?

"Is there really a parent selector in CSS? How can developers style parent elements based on their child elements, and what alternatives or…

Java

1 Answer · 652 Views · Answered ✓

Asked by: Musk Elonn · 1 year ago

Array.size() vs Array.length

"What is the difference between Array.size() and Array.length in programming? How do these two methods work, and in which situations should you use…

Java

1 Answer · 2.1K Views · Answered ✓

Asked by: Jonathan Skinner · 1 year ago

What is a JavaBean exactly?

What is a JavaBean in Java, and how is it different from a regular class? Understanding this concept is important because JavaBeans follow specific…

Java

1 Answer · 358 Views · Answered ✓

Asked by: rahul tomar · 1 year ago

Integer division in Java

How does integer division work in Java, and what makes it different from floating-point division? Understanding this concept is important because…

Java

1 Answer · 4.8K Views · Answered ✓

Asked by: koushik sarkar · 1 year ago

Convert int to char in java

How can you convert an int to a char in Java, and what are the different approaches available? This concept helps developers understand type casting…

Java

2 Answers · 932 Views · Answered ✓

Asked by: Daniel Pettigrew · 1 year ago

regex string replace

How can you use regular expressions (regex) to find and replace parts of a string? What functions or methods let you perform powerful pattern-based…

Java

2 Answers · 588 Views · Answered ✓

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