Trending questions in Java

+14 votes
17 answers

How can I convert String to JSON object in Java?

Hi @Daisy You can use Google gson  for more ...READ MORE

Feb 7 in Java by Suresh
• 700 points
51,841 views
+6 votes
11 answers

Default parameters of XMS and XMX in JVM

You use these Java command-line parameters to ...READ MORE

Nov 13, 2018 in Java by Murali
34,820 views
+2 votes
11 answers

“A Non-static method cannot be referenced from a static context” error

Instead of final, here you can wrap ...READ MORE

Jan 29 in Java by zemiak
23,715 views
+8 votes
11 answers

Unable to resolve this error: "javac is not recognized as an internal or external command"

Check your javac path on Windows using Windows Explorer C:\Program Files\Java\jdk1.7.0_02\bin and ...READ MORE

May 23, 2018 in Java by Rishabh
• 3,520 points
18,688 views
0 votes
10 answers

How to import a jar file in Eclipse?

Go to your project right click and ...READ MORE

Dec 10, 2018 in Java by Hola77
18,979 views
+1 vote
0 answers

How to install java on linux operating system? [closed]

I read good info about java here ...READ MORE

5 days ago in Java by Vicky

closed 5 days ago by Vardhan 14 views
0 votes
1 answer

What are the different types of database testing?

The 3 types of Database Testing are Structural ...READ MORE

May 9 in Java by Frankie
• 9,570 points
11 views
+1 vote
10 answers

Unable to execute jar- file: “no main manifest attribute”

You Can Simply follow this step Create ...READ MORE

Dec 10, 2018 in Java by Sukesh
9,657 views
0 votes
1 answer

Unable to execute jar- file: “no main manifest attribute”

The proper syntax to run a jar ...READ MORE

Apr 22 in Java by Omkar
• 65,840 points
61 views
0 votes
1 answer

How to download Eclipse on a flash drive and use it on a public computer?

To use Eclipse from a flash drive, ...READ MORE

Apr 22 in Java by Omkar
• 65,840 points
39 views
0 votes
10 answers

What is the correct way to add external Jars to IntelliJ IDEA Project?

The best way is to add the ...READ MORE

Dec 10, 2018 in Java by Nabarupa
8,848 views
0 votes
10 answers

How to send HTTP POST requests on Java?

You can use the function as HttpURLConnection.setRequestMethod( ...READ MORE

Dec 10, 2018 in Java by simplecode
9,205 views
+1 vote
10 answers

Communications link failure: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

It could be a simple jar problem. ...READ MORE

Dec 10, 2018 in Java by User50789
8,408 views
0 votes
10 answers

How does java.net.SocketException: Connection reset happen ?

You can use wireshark to view the ...READ MORE

Dec 7, 2018 in Java by tushh
8,123 views
0 votes
1 answer

Create fucntion to find GCD of two numbers

Hey @Diya, here is a code on how ...READ MORE

Mar 28 in Java by Priyaj
• 56,120 points
24 views
+1 vote
10 answers

Iterate over a JSONObject?

You can use the following method to ...READ MORE

Dec 7, 2018 in Java by Shuvodip
7,753 views
0 votes
1 answer

How to find the nth prime number in Java?

Here is the code to find nth ...READ MORE

Mar 4 in Java by Priyaj
• 56,120 points
822 views
0 votes
2 answers

What is the meaning of purpose of this command: java -jar <some jar file>.jar ?

JAR (Java Archive) file is a package file ...READ MORE

Mar 21 in Java by Omkar
• 65,840 points
25 views
0 votes
2 answers

String comparission in Java

You should use s1.equals(s2) instead of '==' ...READ MORE

Mar 14 in Java by anonymous
51 views
0 votes
1 answer

How do I break out of nested loops in Java?

You can use break with a label for the ...READ MORE

Mar 12 in Java by trisha
21 views
0 votes
1 answer

Difference between Instance Variable and Class Variable

A variable defined within a block or ...READ MORE

Mar 12 in Java by Reema
32 views
0 votes
0 answers

Iterate over json and output multiple rows

I have a json in which multiple ...READ MORE

Mar 12 in Java by Yogesh
15 views
0 votes
1 answer

How to remove object from an Array?

Here is a code I came up ...READ MORE

Mar 11 in Java by Esha Gupta
32 views
0 votes
1 answer

Extend an array after initialization

Here is the method I came up ...READ MORE

Mar 11 in Java by Esha Gupta
32 views
0 votes
1 answer

Reverse an Array in Java

To reverse an array, here is the ...READ MORE

Mar 11 in Java by Esha Gupta
29 views
0 votes
1 answer

Merge two array in Java

This is very simple, you need an ...READ MORE

Mar 11 in Java by Esha Gupta
28 views
0 votes
1 answer

Find common element between two array.

You just need nested loop, that will ...READ MORE

Mar 11 in Java by Esha Gupta
10 views
0 votes
1 answer

How to parse invalid XML in Java ?

That "XML" is worse than invalid – it's not well-formed; ...READ MORE

Mar 6 in Java by developer_1
• 3,220 points
97 views
0 votes
1 answer

How to refresh data in ViewPager Fragment ?

Using the ViewPager.OnPageChangeListener is the correct way to go, ...READ MORE

Mar 6 in Java by developer_1
• 3,220 points
80 views
0 votes
1 answer

What are the types of memory in JVM?

The different types of Memory in JVM ...READ MORE

Mar 7 in Java by Priyaj
• 56,120 points
48 views
0 votes
1 answer

How to take multiple integer input in one line using BufferedReader in Java?

According to me what you can do ...READ MORE

Mar 4 in Java by Priyaj
• 56,120 points
126 views
0 votes
1 answer

What is an Operand Stack in Java?

The basic utility of Operand Stack are ...READ MORE

Mar 7 in Java by Priyaj
• 56,120 points
19 views
0 votes
1 answer

Remove duplicates from an ArrayList in Java

Here is the function for doing this. // ...READ MORE

Mar 5 in Java by Heena
75 views
0 votes
1 answer

What is JNI?

Java native interface, it is an interface ...READ MORE

Mar 7 in Java by Priyaj
• 56,120 points
12 views
0 votes
1 answer

How to break a number to individual digit?

The best way would be find the ...READ MORE

Mar 7 in Java by Priyaj
• 56,120 points
9 views
0 votes
1 answer

Compiling error in Java

Generally the file name and the class ...READ MORE

Mar 7 in Java by Priyaj
• 56,120 points
7 views
0 votes
1 answer

Count occurance of string in an array

You can use hashmap to solve this, ...READ MORE

Mar 7 in Java by Priyaj
• 56,120 points
11 views
0 votes
1 answer

Replace all 0's with 5 in Java

Take a look at this, hope this ...READ MORE

Mar 6 in Java by Priyaj
• 56,120 points
15 views
0 votes
1 answer

What is integer boxing in java?

In Java the boxing range for any ...READ MORE

Mar 6 in Java by Avantika
• 1,060 points
14 views
0 votes
1 answer

What are the different ways of comparing Strings in Java?

The different ways of comparing string in ...READ MORE

Mar 5 in Java by Wasim
23 views
0 votes
1 answer

Start a Standalone Application in Java

You can make this work by calling start(...) directly on a ...READ MORE

Mar 5 in Java by developer_1
• 3,220 points
20 views
0 votes
1 answer

What are the different types of constructor in StringBuilder class?

There are different types of StringBuilder constructor ...READ MORE

Mar 5 in Java by Mariyam
21 views
0 votes
1 answer

finalize() called on strongly reachable object in Java 8

A bit of conjecture here. It is ...READ MORE

Mar 5 in Java by developer_1
• 3,220 points
18 views
0 votes
1 answer

How to get rid of TLE in Java?

The TLE (Time limit exceed) problem occurs ...READ MORE

Mar 5 in Java by Disha
17 views
0 votes
1 answer

How to take input using BufferedReader in Java?

BufferedReader is used to decrease the time ...READ MORE

Mar 4 in Java by Priyaj
• 56,120 points
21 views
0 votes
1 answer

How to rotate an array from a particular index?

This is the code for the above ...READ MORE

Mar 4 in Java by Priyaj
• 56,120 points
10 views
0 votes
1 answer

Rotate elements of array by n position

Here is what I came up with,  import ...READ MORE

Mar 3 in Java by Priyaj
• 56,120 points
17 views
0 votes
1 answer

How to use nested class in Java?

This program will help you understand the ...READ MORE

Mar 3 in Java by Priyaj
• 56,120 points
12 views
0 votes
1 answer

Install Java on Ubuntu

Hi @Anvi, to install Java on Ubuntu, ...READ MORE

Mar 1 in Java by Pratibha
• 2,520 points
32 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.