<< < 132 133 134 135 136 137 138 139 140 141 142 > >>   Sort: Date

What is the difference between declaring a variable and defining a variable?
What is the difference between declaring a variable and defining a variable? In declaration we just mention the type of the variable and it's name. We do not initialize it. But defining means declaration + initialization. e.g String s; is just a declaration while String s = new String ("abcd"); Or S...
2013-05-14, 2338👍, 0💬

What's the difference between a queue and a stack?
What's the difference between a queue and a stack? Stacks works by last-in-first-out rule (LIFO), while queues use the FIFO rule
2013-04-12, 2337👍, 0💬

How can I shut off the warning: possible pointer alignment problem ...
How can I shut off the ``warning: possible pointer alignment problem'' message which lint gives me for each call to malloc? A modern lint shouldn't be complaining about this. Once upon a time, lint did not and could not know that malloc ``returns a pointer to space suitably aligned for storage of an...
2016-06-03, 2336👍, 0💬

What is the test coverage?
From the following code, atleast how many test cases are needed to guarantee 100%coverage Input Number_of_Coins Total=0 While Number_of_Coins>0 Input Value_of_Coin Total=Total + Value_of_Coin Number_Of_Coins=Number_of_Coin s- 1 End Loop Print "Your coins are worth" & Total What is the correct op...
2014-11-24, 2334👍, 0💬

What are E and PI?
What are E and PI? E is the base of the natural logarithm and PI is mathematical value pi.
2013-01-04, 2334👍, 0💬

The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is ...
The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is ... The method that transfers ASP.NET execution to another page, but returns to the original page when it is done is * Server.Transfer() * Server.Redirect() * Server.Execute() * Server.Re...
2014-06-18, 2333👍, 0💬

What are the different ways to handle exceptions?
What are the different ways to handle exceptions? There are two ways to handle exceptions, 1. By wrapping the desired code in a try block followed by a catch block to catch the exceptions. and 2. List the desired exceptions in the throws clause of the method and let the caller of the method hadle th...
2013-05-31, 2333👍, 0💬

What is numeric promotion?
What is numeric promotion? Numeric promotion is the conversion of a smaller numeric type to a larger numeric type, so that integer and floating-point operations may take place. In numerical promotion, byte, char, and short values are converted to int values. The int values are also converted to long...
2013-01-21, 2333👍, 0💬

What is the range of the char type?
What is the range of the char type? The range of the char type is 0 to 2^16 - 1.
2012-10-16, 2333👍, 0💬

Which Java operator is right associative?
Which Java operator is right associative? The = operator is right associative.
2012-10-24, 2332👍, 0💬

If a variable is declared as private, where may the variable be accessed?
If a variable is declared as private, where may the variable be accessed? A private variable may only be accessed within the class in which it is declared.
2012-11-07, 2331👍, 0💬

Can I have multiple main methods in the same class?
Can I have multiple main methods in the same class? No the program fails to compile. The compiler says that the main method is already defined in the class.
2013-05-08, 2328👍, 0💬

Why do threads block on I/O?
Why do threads block on I/O? Threads block on i/o (that is enters the waiting state) so that other threads may execute while the i/o Operation is performed.
2013-02-12, 2328👍, 0💬

What is the difference between the &gt&gt and &gt&gt&gt operators?
What is the difference between the &gt&gt and &gt&gt&gt operators? The &gt&gt operator carries the sign bit when shifting right. The &gt&gt&gt zero-fills bits that have been shifted out.
2012-09-26, 2328👍, 0💬

What are stored procedures? How is it useful?
What are stored procedures? How is it useful? A stored procedure is a set of statements/commands which reside in the database. The stored procedure is pre-compiled and saves the database the effort of parsing and compiling sql statements everytime a query is run. Each database has its own stored pro...
2013-07-17, 2327👍, 0💬

Which containers use a FlowLayout as their default layout?
Which containers use a FlowLayout as their default layout? The Panel and Applet classes use the FlowLayout as their default layout.
2013-04-09, 2327👍, 0💬

Can main() method be overloaded?
Can main() method be overloaded? Yes. the main() method is a special method for a program entry. You can overload main() method in any ways. But if you change the signature of the main method, the entry point for the program will be gone.
2013-02-25, 2327👍, 0💬

What environment variables do I need to set on my machine in order to be able to run Java programs?
What environment variables do I need to set on my machine in order to be able to run Java programs? CLASSPATH and PATH are the two variables.
2013-05-07, 2326👍, 0💬

Describe synchronization in respect to multithreading.
Describe synchronization in respect to multithreading. With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the pro...
2013-04-23, 2326👍, 0💬

What an I/O filter?
What an I/O filter? An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.
2013-01-02, 2326👍, 0💬

What is synchronization and why is it important?
What is synchronization and why is it important? With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchronization, it is possible for one thread to modify a shared object while another thread is in the process of...
2013-06-05, 2325👍, 0💬

State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of
State the significance of public, private, protected, default modifiers both singly and in combination and state the effect of package relationships on declared items qualified by these modifiers. public : Public class is visible in other packages, field is visible everywhere (class must be public t...
2013-04-30, 2325👍, 0💬

Which characters may be used as the second character of an identifier,but not as the first character of an identifier?
Which characters may be used as the second character of an identifier,but not as the first character of an identifier? The digits 0 through 9 may not be used as the first character of an identifier but they may be used after the first character of an identifier.
2013-02-14, 2322👍, 0💬

To what value is a variable of the boolean type automatically initialized?
To what value is a variable of the boolean type automatically initialized? The default value of the boolean type is false.
2013-01-22, 2322👍, 0💬

<< < 132 133 134 135 136 137 138 139 140 141 142 > >>   Sort: Date