Java (not to be confused with JavaScript) is a class-based, object-oriented, strongly typed, reflective language and runtime environment (JRE). Java programs are compiled to bytecode and run in a virtual machine (JVM) enabling a "write once, run anywhere" (WORA) methodology.

learn more… | top users | synonyms (6) | java jobs

0
votes
0answers
6 views

Working of JIT Compiler

The JIT Compiler achieves optimization by caching the methods hence reducing the re compilation of the method every time. I am a bit unclear about this topic. Could someone clear me this with an ...
0
votes
0answers
12 views

How to create HashMap dynamically

I have .txt file with 5L values(Lines) in the following way and also have partition size 50000. 1 3 -1546.9 -67.90 3456 . . . With the following example you can understand what is mean by ...
0
votes
0answers
11 views

Fetching PNR status from PNR no. using json

I am android beginner and trying to fetch pnr status using json here is my code which is not working please help me . Also tell me which parsing method is goo xml parse or json parse. When you ...
0
votes
0answers
8 views

Spring injection: @Component over native singleton

Instead of creating the usual Java singletons/static classes, is it best practice to use the @Component annotation instead to let Spring handle the initialization? Or is it abusive?
0
votes
2answers
15 views

Issue with Accessing .java files with Eclipse

Sorry for the kind of vague question, but I am experiencing an issue with the Eclipse IDE. I wanted to have a new black UI and I did just that. However, I had to download a newer version of Eclipse ...
0
votes
2answers
26 views

Why is my program crashing (java)?

I need to convert hexadecimal to decimal using different methods. When I enter numbers that are correct hexadecimal numbers, my program displays the decimal value and says that the number is valid. ...
0
votes
0answers
10 views

Drawing A Rosetta Shape

I need to draw a Rosetta shape in Java using an applet. Its a sort of rose pedal, I suppose with even peddles on each side. I'm trying to draw the full circles first and then modify the arcs but I ...
1
vote
1answer
13 views

Javax annotation called threadsafe

//javax annotation below @ThreadSafe public class A { } Does this annotation actually make the class Thread Safe or is it just for readability ?
0
votes
0answers
19 views

How to implement a retry After logic?

I was recently working on an application and have a use case where I return back a set of responses to clients e.g. ALLOW, DENY and PENDING. Let's say if the response returned by the service is ...
0
votes
0answers
3 views

Can't “integrate” jBPM 5.4 into a Maven web app

I have been having trouble getting "jBPM integrated into a web app" while using Eclipse (Kepler). As a test I am simply trying to replicate the code found in the jBPM Full Installer's evaluation ...
-2
votes
0answers
12 views

could not display image in jsp form but the url is loaded

I am using the this code to display photo. < tr> < td>< img src="file:///<%=photo %>" alt=""/>< /td>< /tr> but the photo is not diplayed. when using the firebug image can be seen ...
0
votes
0answers
15 views

Tomcat classloader is not working

I need your help. I am facing unusual problem dealing with Tomcat classloader. I have a WAR and inside the WAR there's a third-party JAR that has native methods. The WAR successfully deployed in a ...
0
votes
1answer
12 views

How do I Share Enum values between my Java code and .proto file

I have a class that I wish to protobuf. in that class one of the fields is an enum (in a class of it's own). Can I avoid defining an identical enum value in my .proto file ? Or will I have to manually ...
0
votes
2answers
31 views

Why is the “IndexOutOfBoundException” coming in this code snippet

Whenever I am running it on emulator the logcat shows "IndexOutOfBounds". I don't understand why is this happening. I have checked my program using try catch block which confirms that the problem is ...
0
votes
5answers
44 views

Read and print from text file in Java

So I'm using Netbeans to write a simple program, however I've run into a problem printing a txt file. The code I've written is below public static void main(String[] args) throws IOException { ...

15 30 50 per page