Can you have an empty Integer value in java?
No. It has to be either NULL (Not yet Instantiated) or 0. Numeric objects cannot be empty.
What does initComponents in java means?
initComponents is used to put and assign all the graphical interface methods, classes into it. Mainly used by Netbeans.
Arijit
What is the difference between temporary contraceptive methods and permanent contraceptive methods?
Temporary are methods like the a condom, the pill, the patch, or the ring. Things like that at which you can stop using at any time to try to become pregnant. Permanent methods are like a visectomy or getting your tubes tied. Things that will last for the rest of your life if you decide you never want a baby.
How are java program statements terminated?
Each statement in Java ends with a semicolon, for example:
int a;
a = 5;
int b = 10;
What is abstract data type in c plus plus?
Abstract data types are the opposite of a concrete data types. An abstract data type is one that does not contain all of the function code necessary to create an instance of the object. This design allows subclasses to implement the abstract functions while inheriting the non-abstract functions of the class. A pointer to an abstract instance can call all the abstract functions of that object, which will defer their execution to the actual concrete data type's implementation of that function. As a simple example, an abstract class ChessPiece might have a function called move(). A Pawn subclass would behave differently than a Queen would, but both could be called by outside code without knowing (or caring) about what type of ChessPiece is moving.
CorrectionAbstract classes can provide a full and complete (if generic) implementation for all of their pure-virtual functions. It is not the lack of a complete implementation that renders them abstract, but the fact the methods were declared pure-virtual and therefore cannot be inherited. However, derived classes can still call those implementations from within their own implementations.
Furthermore, derived classes that do not provide implementations for all the pure-virtual methods become abstract base classes themselves. But the pure-virtual methods that they do implement can then be inherited through multi-level inheritance.
Non-inheritance of pure-virtual methods only applies to the class that initially declared the method as pure-virtual. Provided an implementation is declared protected or public within a derived class, that implementation can then be inherited by a concrete class, or it can be overridden if required.
What data type will you use to declare a variable to store population on earth?
Since the population of the Earth is around 7 billion (short scale), I would use either a long long integer that was 64 bits in length (if available) that would give me 18 digits of precision, or a double precision floating type that would give me 15 digits of precision.
Why c and java arrays are start with zero and pascal arrays are start with one?
It's a difference in mentality; some believe 0 is the begin, and is thus the only logical choice, and some think the opposite.
Does Java support little endian or not?
There is little endian byte ordering support in Java found in the java.nio package (see ByteBuffer and ByteOrder class).
What is the difference between an inline object and a floating object?
A floating object can be moved independently of the surrounding text characters.
Tokenizing is the process of taking big pieces of source data, breaking them into little pieces, and storing the little pieces in variables. Probably the most common tokenizing situation is reading a delimited file in order to get the contents of the file moved into useful places like objects, arrays or collections. We'll look at two classes in the API that provide tokenizing capabilities: String (using the split() method) and Scanner, which has many methods that are useful for tokenizing.
How do you save a notepad file into a java file?
just add an extension .java when you save your notepad text file
Procedural models are models generated by using an algorithm(s) to create the model, instead of a 3d graphic designing it in a program like Blender or 3D studio max.
Can you non-recursively call a method you are currently in in Java?
The definition of recursion states that each method call after the initial one must be influenced by the previous call (its results must depend on the results to previous calls).
While this can lead to a method calling itself in a non-recursive way, it seems that it is also a sign of poor coding style and hard to read methods.
Why are local variable stored on stack?
Because they are created and destroyed on 'last-in-first-out' principle.
Which programming language is the hardest to study from?
The one you do not know. All programming languages are hard for a beginner, you just have to stick with it for a few years. It is much easier to switch to a new language when you already know one with perhaps the exception being FORTH.
I like C the best but others will think differently.
Java provides several XML Parsers like DOM, SAX or JDOM and API javax.xml.parsers by using those we can easily read xml files in Java. DOM is quickest and easiest way to read XMlL file in Java.
What secondary type of data is used in econometric models?
Economic forecasting models predominantly use time-series data, where the values of the variables change over time.
When does a name clash occur in java programming?
A name clash occurs when a name is defined in more than one place. For example., two different class libraries could give two different classes the same name. If you try to use many class libraries at the same time, there is a fair chance that you will be unable to compile or link the program because of name clashes.
Can there be multiplle increment exression in increment part of the for loop statement?
Yes, you can have multiple expressions in the increment poart of the for loop statement. Just use the comma, and each expression will be evaluated from left to right.
Why an array is called derived data type?
it contains the similar type of object which derive from the predefined data type
like int,float,char e.t.c
so it is called derived data type.........................
When people talk about java programming what java program do they mean?
"Java programming" refers to the act of creating programs - any programs - in the Java programming language.
This is much like "C programming" refers to writing programs in the C programming language.
Is GUI better in Java or C plus plus?
Neither Java nor C++ have a GUI as such -- the GUI is not part of the language specification. But comparing the GUIs for an IDE intended for Java with that of an IDE intended for C++ is hardly going to tell you which is better, since they are intended for completely different purposes. You might as well compare the GUI provided with Adobe PaintShop Pro against the GUI for Microsoft Word for all the good it does.
Where does javadoc extract comments from?
The javadoc tools extracts comments from your source code. Specifically, it will look for comments around class, field, and method definitions which are in the javadoc format: /** */