Cracking the Java Coding Interview pdfdrive com


Implementaions are usually slower then array because of all the


Download 1.48 Mb.
Pdf ko'rish
bet62/182
Sana02.05.2023
Hajmi1.48 Mb.
#1423275
1   ...   58   59   60   61   62   63   64   65   ...   182
Bog'liq
Cracking the Java Coding Interview ( PDFDrive )

Implementaions are usually slower then array because of all the
functionality that comes with them. As implemented in Java, vector is a
thread-safe class and hence all methods are synchronous methods, which
makes them considerably slow.
Java says “write once, run anywhere”. What are some ways this isn’t quite
true?
Any time you use system calls specific to one operating system and do not
create alternative calls for another operating system, your program will not
function correctly. Solaris systems and Intel systems order the bits of an
integer differently. (You may have heard of little endian vs. big endian)
If your code uses bit shifting, or other binary operators, they will not work
on systems that have opposide endianism.
What is the difference between an Applet and an Application?
1. Applets can be embedded in HTML pages and downloaded over the
Internet whereas Applications have no special support in HTML for
embedding or downloading.
2. Applets can only be executed inside a java compatible container, such as
a browser or appletviewer
whereas Applications are executed at command line by java.exe or
jview.exe.
3. Applets execute under strict security limitations that disallow certain
operations(sandbox model security) whereas Applications have no inherent
security restrictions.
4. Applets don’t have the main() method as in applications. Instead they
operate on an entirely different mechanism where they are initialized by
init(),started by start(),stopped by stop() or destroyed by destroy().


init(),started by start(),stopped by stop() or destroyed by destroy().
How can you force all derived classes to implement a method present in the

Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   ...   58   59   60   61   62   63   64   65   ...   182




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling