English

Sending an HTTPS request from a Java application

What are the ways to send https requests from a desktop java application? The source code example is particularly interesting.

Why Proxy and Reflect in JavaScript, what is the difference and when and what to use?

What are Proxies useful for, and how often are they used in real development? It is also unclear about the reflexes, it turns out that this is almost the same. It is not clear why both exist at the same time.

How to divide a number entirely in javascript?

How to divide a number completely in javascript? Is there some kind of operator for dividing the whole?

The equals() method in Java

How to properly override the equals() method in Java?

Singleton в Android — зло?

Ранее я использовала Singleton наподобие этого: public class Singleton { private static Singleton i ... использования Singleton в Android? Нет ли у этого способа каких-либо недостатков? Хотелось бы узнать вашу точку зрения.

Hosting for a Java application: help me figure it out

I wrote a simple Java server on sockets. I run it in Eclipse - everything is fine, works, interacts with the client. Now I wa ... this difficult topic, maybe you can recommend reading something? And then I look: Jboss, Tomcat... Is this even on my topic?

How to parse html in java?

You need to parse the web page and extract the path to the image from it. I can't figure out the HTML Parser class in any way. I need an example - I can't find it in the net.

immutable-объекты и многопоточность

Доброго дня, уважаемые гуру Java. Анализирую вопросы, которые задают на собеседованиях. Пытаюсь более дет ... зать адекватные источники, где раскрыты рекомендации по использованию неизменяемых объектов в контексте многопоточности?

In what order should I read java books? [duplicate]

This question is already answered here: ... gan-Java in Examples. Guide. What can you say about these two books and whether it is worth starting to learn java from them?

How to parse an html page with JavaScript in python 3?

How to parse a html page from JavaScript to python 3 and what is needed for this.

How to design an abstract DAO interface correctly and is it worth doing it at all?

Every time I'm faced with writing another DAO, I stumble over the same problem - designing the most abstract DAO interface th ... /generic DAO at all, or is it better to continue riveting specific methods for each new use case in batches and not show off?

Cache Coherence and the Java Memory Model

Can cache coherence affect the performance of a multithreaded Java application? Or does the virtual machine solve all the problems? In which cases will the same multithreaded code work differently depending on the cache?

Sorting map by java value

There is map<Integer,Integer>, how do I sort it by value?

Помогите процедурщику переписать маленький скриптик на javascript в ООП стиле

Есть код function popup(){} popup.hello = function(){ $("#container").html('<div onclick="po ... ax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <div id="container"></div>

How to find the sum of numbers from an array in java?

I'm trying to get the sum of all the numbers. For example: public static void testArray() { int myArray[] = {3, 5, 7, 12} ... array, provided that the length of the array can be arbitrary, and the numbers in it are different, not having any sequence?

Microcontrollers and Java

I am interested in this question. Let's say I have some button that is lying on the table. What microcontrollers, devices, etc. can be used to implement the interaction of this button and java?

What are Getters and Setters?

I'm new to Java and I want to understand the terminology. Perhaps I already use it, but I do not know that it is called that ... Example of a setter: static void TxtHP(String name1, String name2){ System.out.println(nameA1 + " любит " +name2); }

Show beautiful things in JavaScript html5 CSS3? [closed]

Closed. This question should be specified . Answers to it are not accepted at the moment. ... I want to see beautiful effects in JavaScript html5 CSS3, tell me where you can see it ?

What is the best way to specify the file path in a Java program? Where is the best place to store the files used by the program?

You can specify the absolute path to the file, let's say like this: Image img = new ImageIcon("G:\\img.png").getImage(); A ... eral, questions: Is what I wrote correct? What other ways are there? When which method to use? What is the best way (if any)?

Why do I need different types of links in Java?

I'm deepening my knowledge of Java. I came across an article about link types. I realized that there are 4 types of links: ... только в случае сильной необходимости JVM в памяти object= null; 4 Type phantom link (didn't understand anything about it)