Courses
Courses
Code Compiler
Code Compiler
Discuss
Pricing
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
How can the subclass override a concrete method of the superclass and declare it as abstract?
abstract
class
java
subclass
superclass
1 Vote
2 Answers
7th Mar 2020, 11:13 AM
D ̲E ̲S ̲S ̲I ̲E ̲- ̲B ̲A ̲H ̲I ̲R ̲U ̲
Is it necessary to declare main method as static in java...what is the use of it...
comments
main,java,tutorial
0 Votes
2 Answers
24th Aug 2018, 6:10 AM
Pawan Bangar
I declare the function using parameter pointer (create array) but we run the programme to main function does work the array
function-arguments
pointers
0 Votes
11 Answers
16th Sep 2017, 12:46 PM
Vibeeshanan Vibee
Need help guys....if we declare a variable in any structure can we use those variables inside any fuction???
c
1 Vote
5 Answers
4th Sep 2017, 2:12 AM
BuckyAlita
C++ question
11
c++
declare
variables
0 Votes
3 Answers
19th Oct 2018, 12:07 PM
Sabine Meijran-Prins
do we declare the objects when we want to use and out of the classes?
c++
class
classes
objects
oop
syntax
0 Votes
3 Answers
8th Oct 2016, 12:14 PM
Ayin GhaziMoradi
How can I declare a method with a new variable, which I then can use in my main?
java
methods
variables
0 Votes
6 Answers
7th Apr 2017, 4:52 PM
Xaver
I dont know price of labour but i need to declare a single double argument. Any ideas
double
variables
0 Votes
2 Answers
9th Dec 2019, 8:58 PM
Gareth Taylorhayward
Fill in the blanks to declare a variable, add 5 to it and print it's value >>>x=4 >>>X= _=5 >>>print___
python
0 Votes
4 Answers
20th Aug 2016, 5:15 PM
Breylon Estes
In while loop, why we first call the "System.out.prinlnt" and after declare the "x++" ?
java
loops
1 Vote
2 Answers
28th Nov 2016, 12:03 PM
Megii
How to build a SQL statement using Different conditions like where condition and how to declare the data types?
sql
0 Votes
6 Answers
18th Nov 2018, 8:35 AM
Nikita
can anyone help me how to declare variable in python and assign value to a variable of particular data type
python
7 Votes
3 Answers
25th Sep 2016, 5:20 PM
Athul Joy
Can I set an variable to a value in my class, and declare it in int main?
c++
variables
0 Votes
3 Answers
23rd Jun 2019, 1:15 PM
Mythical Coding
Do we have to also put a variable after '*' sign to declare pointers?
c++
pointers
0 Votes
2 Answers
31st Mar 2017, 5:36 AM
Yash Singhal
what will happen if we declare instance of static classes? will it give compile time error or run time?
c#
2 Votes
5 Answers
10th Jul 2016, 2:46 PM
Souradip Das
Which other keywords are also used to declare the class other than class? A. struct B. union C. object D. both a & b
c++
classes
program
struct
0 Votes
4 Answers
20th Feb 2018, 9:06 AM
S.k. Raj
When we declare a variable private then why Java dont allow it to access from outside the class?
java
0 Votes
3 Answers
29th Apr 2020, 5:30 PM
parag sahu
Why do we need to declare our variables, members or classes as static or const ?
c#
static
0 Votes
3 Answers
1st Jul 2017, 5:14 PM
Haider Ali
How do i declare a variable that only returns the absolute of any value it receives?
c++
0 Votes
3 Answers
19th Jan 2017, 6:01 PM
Cody Arthur
Why do we need a constructor for our class instead of declare variable or just put parameters into class and using that all?
class
constructors
python
0 Votes
10 Answers
27th Apr 2020, 8:27 AM
SwingsNFI
Can we first declare a string and then use 'startwith' and 'endwith' function on this string?If not, why?
sololearn
2 Votes
2 Answers
10th Jun 2020, 11:13 AM
Vasudev Dubey
When We declare a variable why do we get different value if we add 0's in the beginning?
javascript
variables
4 Votes
2 Answers
9th Dec 2016, 3:10 PM
Anindya
Hi... M trying to declare and call a method. What am I missing here?
method
1 Vote
1 Answer
1st Mar 2017, 5:22 AM
Ricardo Chitagu
Does 'Exception e' declare an object 'e' of type Exception as a parameter, or is it syntax simply meaning 'all exceptions'?
exceptions
java
2 Votes
7 Answers
12th Jan 2016, 10:43 PM
Alex Greidinger
It is necessary to declare size of array?how much memory is allocated if size isnt declared?
array
cpp
linkedlist
0 Votes
3 Answers
19th Jan 2017, 5:28 AM
Suhas Patil
Fill in the blanks to declare a variable, add 5 to it and print its value.
python
0 Votes
1 Answer
12th Feb 2018, 9:56 AM
Kawser Hamid
Why do we use abstract method when we can directly declare normally.i cant see the difference
abstract-classes
0 Votes
2 Answers
12th Feb 2019, 11:30 PM
chanukya mahidhar
If "var" is a reserved word why then should it be used to declare a variable? plsss $ome help
javascript
variables
1 Vote
5 Answers
11th Sep 2016, 10:53 PM
Petersburg IK
1.Can we declare global variables and use it all functions in C ? 2.Can we display a message outside main() in C-language?
basic
c
1 Vote
6 Answers
19th Mar 2022, 11:46 AM
Md Saif Ali
I don't know why I am Getting error in this? Error is " you must declare main class" and the variable is not defined.
code
error
java
2 Votes
8 Answers
31st Jul 2020, 8:52 AM
Mallika Gupta
How to initialize 5 strings of 3 characters ? don't want to declare 5 strings but one ?
c
langage
2 Votes
3 Answers
8th Jun 2017, 6:36 PM
Zineb Ab
why does case 2 yields error(error: 'ch' undeclared (first use in this function)). when its perfectly okey to declare 'i' inside
arrays
c
c_lang
characters
cpp
doubt
for_loop
loops
pointers
strings
1 Vote
4 Answers
16th May 2022, 6:16 AM
blueshipswims
In the following program When i declare sum=a+b in third line befor cout the compiler gave to me a wrong answer.why?
c++
variables
0 Votes
8 Answers
24th Dec 2016, 8:25 PM
Hanif
Can I declare more variables of an array exceeding the maximum capacity of the array?
array
c++
variables
0 Votes
2 Answers
18th May 2017, 6:28 PM
Trijit sikdar
Array Size Java
arrays
declare
java
size
0 Votes
1 Answer
2nd Sep 2020, 11:55 AM
anshu kulshrestha
Fill in the blanks to declare a variable named "color" and assign the value 42 to it. The variable should not be changeable.
answer
me
please
1 Vote
6 Answers
29th Apr 2023, 9:32 AM
yohanan esubalew
Consider this: a=Math.pow(b,c). Why can't I declare 'a' as integer? The program can run only when I change it to double.
beginner
java
power
0 Votes
5 Answers
26th Nov 2019, 11:35 AM
Addam
Fill in the blank to declare an integer variable and set its value to 5. (This is a Question)
datatypes
java
operators
-2 Votes
4 Answers
16th Oct 2016, 10:02 PM
Sathish Kumar
Reorder the code to declare a Queue of integers, add values 1 through 5 and print the contents of the Queue.
c
c#
c++
generics
order
0 Votes
2 Answers
8th Oct 2019, 10:54 AM
Atharva mali
Declare a template function, taking three arguments of type T. If the third argument is greater than the first, return the secon
c++
0 Votes
7 Answers
20th Oct 2016, 12:42 PM
anjanel macalaguim
How do you declare a string, variable, and integer in both C# and C++ ?
c#
0 Votes
1 Answer
9th Mar 2017, 8:53 PM
Jason Bourne
Fill in the blanks to declare a variable,add 5 to it and print its value
python
-4 Votes
2 Answers
13th May 2017, 10:32 AM
Nitin
Type in a code to declare variable b and assign a's value to b and print the output to screen
variables
0 Votes
3 Answers
18th Jul 2018, 4:53 PM
S.SAMEERA BEGUM
I can use some help on the even or odd practice. How does one declare an even to compare a random number to?
c++
else-statements
1 Vote
5 Answers
14th Feb 2021, 8:20 AM
Michelle Davis
If you declare temporary variable in c++ program with while() loop. What does it mean, what is its assignment?
c++
0 Votes
2 Answers
26th Sep 2021, 9:09 AM
TeaserCode
Fill in the blank to declare a jagged array that contains 8 two dimensional array. int [ ] [ , ] a= new int [_][_];
c#
1 Vote
4 Answers
29th Apr 2017, 12:36 PM
Saran Kumar
Can someone help me understand how to declare a boolean variable and how it can be used
realone
1 Vote
1 Answer
23rd Apr 2020, 1:26 PM
RealOne
It's really recommended to declare var keyword? If I don't, it can affect the readability of the code?
variables
1 Vote
2 Answers
19th Jan 2019, 1:39 AM
Unfair Society
In which scenarios , to use var keyword to declare a variable is the best option?
c#
variables
0 Votes
2 Answers
23rd Feb 2017, 1:22 PM
Rajan Trivedi
So a static class can't have constructor? and is necessary declare as static each class members?
static
-1 Vote
2 Answers
25th Apr 2020, 8:01 AM
Marcelo Palma
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
8
9
10
...
12
Next >
Hot today
New code
1 Votes
Does anyone have the solution for this challenge?
1 Votes
How would you solve the part of the C# Intermediate code project that requires operator overloading?
0 Votes
Kernel in Jupyter
2 Votes
Solved# Survey data format in coding for data
1 Votes
I am beginner,This is will be right code?
0 Votes
Why is it so hard to get a job as a junior dev? Or just wanting to do an internship.
1 Votes
SQL
1 Votes
How many days will It takes to completely learn front end
2 Votes
JAVA PROGRAMMING
1 Votes