Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Edyth Ferrill

Edyth Ferrill

Community Learner
Share
15Questions
15Answers
69.0KViews on questions

How do I declare and initialize an array in Java?

Declaring and initializing an array in Java is a fundamental concept, and there are multiple ways to do it depending on your needs—whether you know the values beforehand or just the size. 1. Declare an Array: To declare an array in Java, you specify the type of elements it will hold, followed by square brackets. int[]…

Java

Answered May 21, 2025 · 2.6K Views Read answer →

How do I find long running queries in SQL server with process ID, process name , login time, user , start time and duration?

Their is a tool sp_whoIsActive by Adam Machanic used for several purpose like to see what is running at the moment you launch the script or you can run it in loops to monitor some specific action, as slow queries for example. To run in a loop take a look here: How to Log Activity Using sp_whoisactive in a Loop To…

SQL Server

Answered May 22, 2024 · 41.6K Views Read answer →

How can I solve the issue of “literal doesn’t match format string”?

In the context of SQL, if you are getting the error message “literal doesn’t match format string” during the process of formatting a string by using a method like “format()”, then this could be raised due to a mismatch between the placeholders and the values provided for substitution. Here is the example given:-…

SQL Server

Answered Jan 9, 2024 · 919 Views Read answer →

How can I declare a variable global in a Java programming language?

In the context of the Java program language, global variables are also called instance variables or class-level variables. It can be declared as global to maintain its values across multiple classes. In your scenario, you can use setter methods like “public” or “protected” for your specific objective. Here is an…

Java

Answered Dec 13, 2023 · 1.1K Views Read answer →

How to use nerdctl for deploying a docker container?

The tool Nerdctl is a robust and strong to in order to manage containers even with a focus on compatibility with the docker. If your objective is to deploy a container within a production environment then by using nerdctl, then you can start by crafting a YAML file that can define your specifications of the container.…

Devops

Answered Nov 28, 2023 · 1.6K Views Read answer →

Is it okay if someone gets ‘204 no content’ in PATCH method?

Status code 204 means No content does not imply any error code. It means a successful operation. The common use case is to give back 204 as it is considered a result of a PUT request. It also means updating resources without changing the present content of the page provided to the users. Also, the error response…

Salesforce

Answered Sep 19, 2023 · 1.8K Views Read answer →

How to create a postgresql temporary table?

create postgresql temporary table as needs a select statement: DROP TABLE IF EXISTS lookup; CREATE TEMP TABLE lookup as select * from ( VALUES (0::int,-99999::numeric), (1::int, 100::numeric) ) as t (key, value); You can als

SQL Server

Answered Oct 3, 2022 · 4.9K Views Read answer →

What is Google's Dremel? How is it different from Mapreduce?

Dremel : Google Dremel is a distributed system software used for interactively querying massive datasets(such as event or log files), developed at Google. It is a data analysis tool designed to run queries on large structured datasets. Dremel is the query engine used in Google's BigQuery service. It is the inspiration…

Data Science

Answered Jul 12, 2021 · 2.4K Views Read answer →

WordPress query single post by slug

If you want to show the WordPress query single post by slug you can use the below-mentioned code: $the_slug,'post_type' =>'Post', 'post_status' =>'Publish', 'numberposts' => 1 ); $my_posts = get_posts($args); if( $my_posts ) : echo 'ID on the first post found '. $my_posts[0]->ID; endif;?>

Python

Answered Jul 5, 2021 · 1.8K Views Read answer →

Import error: No module name urllib2 in python 3

To solve importerror: no module named 'urllib2' efficiently you should follow the below-mentioned code to get rid of import error:- from urllib.request import urlopen html = urlopen("http://www.google.com/").read() print(html)

Python

Answered Apr 14, 2021 · 2.2K Views Read answer →

More members from the Java community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.