object tag

32 questions


1 answers
93 views
0
Questions about arrays and reference variables and objects in Java

public class HeapQuiz {int id = 0; public static void main(String []args) { int x =0; HeapQuiz [] hq = new HeapQuiz[5]; while(x <3) { hq[x] = new HeapQuiz(); hq[x].id =x; x = x +1; } hq[3] = hq[...


1 answers
73 views
0
Declaration part when creating an object

I was studying Java thread and created an object. SoloThread s = new SoloThread(10);s.start();I abbreviated this partnew SoloThread(10).start();I've seen a case where I only use it.I've seen a few mor...

2 years ago

1 answers
170 views
0
I implemented the Rest server, but even if JSONObject frees, memory leaks continue to occurㅜ

First of all, I would like to thank the people who read the questions.While implementing the pad server with delphi(tokyo) version, there is a memory leak in the process of creating multiple api and p...

2 years ago

1 answers
68 views
0
Related to using the global object in flask.

Hello.I have a question while reading a book called Flask-based Python Web Programming.The contents below are part of the book.Global objects are efficient at storing and using data that needs to be s...

2 years ago

1 answers
114 views
0
How to print the contents of a JavaScript object

If you use an alert (object), you can only see [object object], but I want to show you all the values that the object has, what should I do?

2 years ago

1 answers
137 views
0
Why does an object inherit?

Why do you inherit an object by writing (object) after its name when declaring a class?Is there a difference that some codes use that and others don't?class MyClass(object): # Class code


1 answers
78 views
0
How do I check if an object has a specific key in JavaScript?

Which of these is the right way? if (myObj['key'] == undefined)if (myObj['key'] == null)if (myObj['key'])

2 years ago

1 answers
79 views
0
Java Serializable Objects into Byte Array

Search results related to Serializable in Java Most examples were related to writing documents to files or reading from documents.Let's say there's a serializable class called AppMessage.I would like ...

2 years ago

1 answers
134 views
0
I have a question for Android programming.

I'm going to make a simple game, and I'm asking you a question because it's hard to get an accurate answer even if I googled.Create a character class in the game and create an object from character 1 ...

2 years ago

1 answers
124 views
0
This is a question for the Java Scanner!

When I declare a field and declare a method after creating one class, if I need a scanner in several methods, should I declare and close the scanner for each method??And I created several classes, and...

« - 2 - »

© 2024 OneMinuteCode. All rights reserved.