answersLogoWhite

0

System calls are platform-dependent, while using abstracted APIs allows your programs to run on multiple platforms, which is a primary benefit of Java. You should minimize the use of system calls when possible, because those will not be portable across platforms.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Why you use API rather than System Calls?

System calls are much slower than APIs (library calls) since for each system call, a context switch has to occur to load the OS (which then serves the system call).


How many API?

There are 3 types of Java Programming Language Application Programming Interfaces (APIs) : • The official core Java API, contained in the JDK or JRE, of one of the editions of the Java Platform. The three editions of the Java Platform are Java ME (Micro edition), Java SE (Standard edition), and Java EE (Enterprise edition). • Optional official APIs that can be downloaded separately. The specification of these APIs are defined according to a Java Specification Request (JSR), and sometimes some of these APIs are later included in the core APIs of the platform (the most notable example of this kind is Swing). • Unofficial APIs, developed by third parties, but not related to any JSRs. Third-parties can freely implement any JSR specifications for an official API (even for the core API of the language), providing that they conform to the Technology Compatibility Kit (TCK) for this JSR (the TCK is a suite of tests that checks conformance of implementations for a JSR). The result of this freedom is that many official APIs have more implementations than the Sun's Reference implementation (RI).


How does jit works?

JIT is just in time and is a philosphy rather than a system. The purpose is to hold little or no stock such that you produce your product in a flexible manner to meet customer demand.


Does a method can throw an exception in java?

Yes it can. It is preferable to have code that will handle these exceptions in every class rather than throwing random exceptions that might confuse the user of the system


The main emphasis of procedure-oriented is on algorithms rather than on data?

the main emphasis of procedure oriented programming is on algorithms rather than on data

Related Questions

Why you use API rather than System Calls?

System calls are much slower than APIs (library calls) since for each system call, a context switch has to occur to load the OS (which then serves the system call).


What is the true meaning of 'texting'?

Communicating in text on devices rather than voice and calls


How does an operating system use API to make things simpler to understand?

An operating system uses APIs (Application Programming Interfaces) to provide a simplified set of functions for developers to interact with hardware and system resources without needing to understand the underlying complexities. By offering predefined methods and protocols, APIs abstract the intricate details of system operations, allowing developers to focus on building applications rather than managing low-level operations. This layer of abstraction enhances productivity and reduces the likelihood of errors, making it easier for programmers to create software that runs efficiently on the operating system.


What are the advantages of lex communis compared other system of laws?

This question calls for an OPINION rather than a FACTUAL answer, which is what this website deals in. Suggest that the questioner post his premise in a blog or discussion room where they can get a variety of opinions to discuss.


Can dexron 6 be used in place of dexron 3?

You can ALWAYS use Dexron 6 in any system that calls for lower number Dexron. You can NEVER use lower number Dexron than what the system calls for. I hope this helps.


What is an octarchy?

An octarchy is a government system ruled by eight rather than one.


Why are not president system in Canada?

Because it is a constitutional monarchy rather than a republic


What is outsoucing?

Outsourcing - assuming that's what you meant, is using another company to perform work. A typical example would be an energy company using a call-centre to handle its calls, rather than dealing with the calls themselves.


What are the system calls of UNIX?

Any time a user or a process running in user space needs to do something that requires privilege it uses a system call interface to ask the operating system to do something on its behalf. There are many, many system calls to accomplish different things - more than could be listed here.


Why do the phone companies crash when everyone calls?

Simply because of the volume of calls. Any phone system only has a limited amount of capacity so, if more people use the system than it can handle, the system crashes (it's a kind of fail-safe to prevent damage to the equipment).


A system of government that focuses on the good of the state rather than on the individual citizens?

Fascist


Scientific name of bee?

Andreniformis, cerana, dorsata, florea, koschevnikovi, mellifera, are nigrocincta are the scientific names for the honey bee species.Specifically, an animal's scientific name consists of at least two parts. The first part is the genus, which is Apis in terms of the honey bee. The second is the species, which will be one of the seven names given above. The complete name therefore will be Apis andreniformis, A. cerana, A. dorsata, A. florea, A. koschevnikovi, A. mllifera, or A. nigrocincta depending upon the honey bee in question.