Trending questions in Java

0 votes
0 answers

What is a JavaBean exactly?

I understood, I think, that a "Bean" ...READ MORE

Apr 19, 2022 in Java by Rahul
• 3,380 points
583 views
0 votes
0 answers

How can I get bootstrap version via javascript?

Is there any way to get bootstrap ...READ MORE

Apr 13, 2022 in Java by Rahul
• 3,380 points
819 views
0 votes
0 answers

Simplest and understandable example of volatile keyword in Java

I'm reading about volatile keyword in Java and completely ...READ MORE

Apr 19, 2022 in Java by Rahul
• 3,380 points
559 views
0 votes
0 answers

Java inner class and static nested class

What is the main difference between an ...READ MORE

Apr 21, 2022 in Java by Rahul
• 3,380 points
471 views
0 votes
0 answers

What is the !! (not not) operator in JavaScript?

I saw some code that seems to ...READ MORE

Apr 13, 2022 in Java by Rahul
• 3,380 points
716 views
+1 vote
1 answer

Google Conversions Not Working - Script Won't Load

To give you a suggestion, you will ...READ MORE

Feb 10, 2022 in Java by Soham
• 9,730 points
3,320 views
0 votes
0 answers

How does the Java 'for each' loop work?

Consider: List<String> someList = new ArrayList<String>(); // add "monkey", ...READ MORE

Apr 19, 2022 in Java by Rahul
• 3,380 points
445 views
0 votes
0 answers

What is the point of "final class" in Java?

I am reading a book about Java ...READ MORE

Apr 27, 2022 in Java by Rahul
• 3,380 points

edited Mar 4 78 views
0 votes
0 answers

Change date format in a Java string

I've a String representing a date. String date_s = "2011-01-18 ...READ MORE

Apr 14, 2022 in Java by Rahul
• 3,380 points
636 views
0 votes
0 answers

Java Code for calculating Leap Year?

I am following "The Art and Science ...READ MORE

Apr 27, 2022 in Java by Rahul
• 3,380 points

edited Mar 4 63 views
0 votes
0 answers

How to use Comparator in Java to sort

I learned how to use the comparable ...READ MORE

Apr 27, 2022 in Java by Rahul
• 3,380 points

edited Mar 4 61 views
0 votes
0 answers

How do I reverse an int array in Java?

I am trying to reverse an int ...READ MORE

Apr 27, 2022 in Java by Rahul
• 3,380 points

edited Mar 4 59 views
0 votes
1 answer

What does [object Object] mean? (JavaScript)

To answer your question, what this means ...READ MORE

Feb 22, 2022 in Java by Aditya
• 7,680 points
2,736 views
0 votes
0 answers

Reverse a string in Java

I have "Hello World" kept in a ...READ MORE

Apr 14, 2022 in Java by Rahul
• 3,380 points
455 views
0 votes
0 answers

How to make a new List in Java

We create a Set as: Set myset = new HashSet() How ...READ MORE

Apr 14, 2022 in Java by Rahul
• 3,380 points
436 views
0 votes
1 answer

jQuery fix for "Uncaught TypeError: $ is not a function" error

 Use the following lines of code in ...READ MORE

Feb 16, 2022 in Java by Aditya
• 7,680 points
2,554 views
0 votes
1 answer

Uncaught referenceerror: $ is not defined

The references must be aligned or put ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,690 points
2,849 views
0 votes
1 answer

Exception in thread main java.util.InputMismatchException error

Problem int name; //Name should be of type ...READ MORE

Feb 18, 2022 in Java by Rahul
• 9,690 points
2,369 views
0 votes
1 answer

Cannot read property 'push' of undefined when combining arrays

The reason why you get this ERROR ...READ MORE

Feb 11, 2022 in Java by Rahul
• 9,690 points
2,549 views
0 votes
1 answer

JSON formatter in C#?

 In order to do the needful, one ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,690 points
2,590 views
0 votes
1 answer

Not able to resolve Datatable SCRIPT5007: Unable to set property '_DT_CellIndex' of undefined or null reference

I had experienced the same error! What ...READ MORE

Feb 16, 2022 in Java by Soham
• 9,730 points
2,154 views
0 votes
0 answers

Using while loop, I want to print the first x even numbers, x being the user input

public static void main(String[] args)     {         Scanner input = ...READ MORE

Apr 5, 2022 in Java by Skulltrooper

edited Mar 4 40 views
0 votes
1 answer

__proto__ VS. prototype in JavaScript

To answer your query, the __proto__ is ...READ MORE

Feb 22, 2022 in Java by Aditya
• 7,680 points
1,737 views
0 votes
1 answer

Failed to load resource: the server responded with a status of 404 (not found)

In order to avoid an error while ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,690 points
2,288 views
0 votes
1 answer

Protocol handler initialization failed:

For me the protocol handler initialization failed ...READ MORE

Feb 17, 2022 in Java by Aditya
• 7,680 points
1,885 views
0 votes
0 answers

I'm trying to do a while loop that prints out the first x even numbers, x being the number i input.

public static void main(String[] args)         {             int num;         Scanner ...READ MORE

Apr 1, 2022 in Java by Skulltrooper

edited Mar 4 52 views
0 votes
1 answer

Using setTimeout to delay timing of jQuery actions

To answer your question, the .html() only ...READ MORE

Feb 9, 2022 in Java by Rahul
• 9,690 points
2,073 views
0 votes
1 answer

Render HTML to an image

To answer your question, there are a ...READ MORE

Feb 8, 2022 in Java by Soham
• 9,730 points
2,051 views
0 votes
1 answer

How can I check for "undefined" in JavaScript?

If you are interested in finding out ...READ MORE

Feb 22, 2022 in Java by Aditya
• 7,680 points
1,434 views
0 votes
1 answer

jQuery AJAX submit form

There is a simple input mentioned below ...READ MORE

Feb 8, 2022 in Java by Soham
• 9,730 points
1,948 views
0 votes
1 answer

'mvn' is not recognized as an internal or external command, operable program or batch file

 While I was solving this problem, the ...READ MORE

Feb 17, 2022 in Java by Aditya
• 7,680 points
1,452 views
0 votes
1 answer

Angular: conditional class with *ngClass

For your information, the latest Angular version ...READ MORE

Feb 9, 2022 in Java by Rahul
• 9,690 points
1,454 views
0 votes
1 answer

How to check a radio button with jQuery?

For versions of jQuery equal or above ...READ MORE

Feb 23, 2022 in Java by Aditya
• 7,680 points
723 views
0 votes
1 answer

Compare two dates with JavaScript

 The Date object will do what you ...READ MORE

Feb 18, 2022 in Java by Rahul
• 9,690 points
903 views
0 votes
1 answer

Programming Test - Codility - Dominator

After I had Googled "computing dominant member ...READ MORE

Feb 11, 2022 in Java by Soham
• 9,730 points
1,169 views
0 votes
1 answer

Parsing a string to a date in JavaScript

The best string format for string parsing ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
807 views
0 votes
1 answer

What's the difference between using "let" and "var"?

The main difference is scoping rules wherein ...READ MORE

Feb 17, 2022 in Java by Aditya
• 7,680 points
811 views
0 votes
1 answer

How do I get the current date in JavaScript?

To ensure that you get the current ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
759 views
0 votes
1 answer

What does "javascript:void(0)" mean?

The href of the link helps with ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,690 points
1,119 views
0 votes
1 answer

Which is faster amongst an Array and an ArrayList?

Array is faster in to an access ...READ MORE

Feb 16, 2022 in Java by Saurabh Maurya

edited Mar 5 28,948 views
0 votes
1 answer

Why is there no multiple inheritance in Java, but implementing multiple interfaces is allowed?

To answer your doubt, the reason is ...READ MORE

Feb 10, 2022 in Java by Rahul
• 9,690 points
1,019 views
0 votes
1 answer

How to merge two arrays in JavaScript and de-duplicate items?

With Underscore.js or Lo-Dash you can use: console.log(_.union([1, ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
666 views
0 votes
1 answer

Refresh a page using JavaScript or HTML

This can be solved by using the ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
659 views
0 votes
0 answers

Testing questions and answer

This category is home to all kinds ...READ MORE

Feb 24, 2022 in Java by anonymous
• 120 points
414 views
0 votes
1 answer

What is the JavaScript version of sleep()?

JavaScript has evolved significantly since the time ...READ MORE

Feb 18, 2022 in Java by Aditya
• 7,680 points
618 views
0 votes
1 answer

Problem with gif with transparent background

In this case, I have noticed that ...READ MORE

Feb 8, 2022 in Java by Rahul
• 9,690 points
1,050 views
0 votes
1 answer

How do I redirect with JavaScript?

To redirect to another page by Using ...READ MORE

Feb 16, 2022 in Java by Aditya
• 7,680 points
682 views
0 votes
1 answer

This page didn't load Google Maps correctly. See the JavaScript console for technical details

The solution to your query is relatively ...READ MORE

Feb 11, 2022 in Java by Rahul
• 9,690 points
889 views
0 votes
1 answer

no 'access-control-allow-origin' header is present on the requested resource

The java <class-name> command syntax is one ...READ MORE

Feb 8, 2022 in Java by Soham
• 9,730 points
1,009 views
0 votes
1 answer

jquery $.each() for objects

The $.each() works for objects and arrays ...READ MORE

Feb 16, 2022 in Java by Aditya
• 7,680 points
645 views