No. Apart from anything else, Java must run in a virtual machine. The only way to write an OS that runs in a VM is if the VM exists in firmware. Even so, the level of abstraction in the VM would make it unworkable. Java does not have any direct access to the hardware, which is a prerequisite for any OS. Even if it were actually possible to write an OS in Java, it would be slower than molasses for even the most basic operations.
C++ is the only real option here, combined with assembler for low-level operations. Of course you must have a complete understanding of all the hardware your OS could run on. The more variable the hardware, the more complex the OS needs to be. Gone are the days when a single programmer threw an OS together in their spare time. These days, we'll take an existing open-source OS and modify it to suit. Even so, it's still a major undertaking.
Why should you study the System Programming?
A Java application program is made of one or more classes and zero or more interfaces. One of the class must have the main() method as the execution starting point of the program. There are 3 steps involved in creating the classes and interfaces of a Java program, and running the program
1
What is the difference between an inline object and a floating object?
A floating object can be moved independently of the surrounding text characters.
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).
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.
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.
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.
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.
How do you save a notepad file into a java file?
just add an extension .java when you save your notepad text file
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.
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.
Why are local variable stored on stack?
Because they are created and destroyed on 'last-in-first-out' principle.
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.
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.
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: /** */
What are java structs in java?
truts is a framework that promotes the use of the Model-View-Controller architecture for designing large scale applications. The framework includes a set of custom tag libaries and their associated Java classes, along with various utility classes. The most powerful aspect of the Struts framework is its support for creating and processing web-based forms.
By
Thiyagarjan V
thiyagu.multi@gmail.com
Why do you use single quotation for declaring a single character in java programs?
This was simply the choice of the language designers, who probably decided to carry over that convention from the C/C++ languages.