Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
1Activity
×
0 of .
Results for:
No results containing your search query
P. 1
Core JAVA FAQ

Core JAVA FAQ

Ratings: (0)|Views: 151|Likes:
Published by mohanece
What is java?
What is java?

More info:

Published by: mohanece on Oct 05, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, DOCX, TXT or read online from Scribd
See More
See less

10/05/2010

pdf

text

original

 
JAVA FAQ¶S1) Handshaking Mechanism: Two Computers establishing a communication with each other & finallydisconnecting from each other is called Handshaking Mechanism.2) Internet Protocol *(IP) Address: IP address is a unique id number given tom every computer onnetwork. * The most populated protocol is TCP/IP.3) JVM : JVM is program it reads to byte code Instruction. It converts the Byte code into Machine codeunderstandable by the Pentium processor by in the computer.4) Difference b/w .exe and .class files?Ans: .exe files contains machine language instruction understandable to the Microprocessor and it isSystem Dependent. .class files contains Byte code Instruction understandable by the jvm . It is Systemdependent.5) Why Java is most useful?Ans: JAVA is most high suitable for internet. Because it is System (or) platfor independent. This means java programs can be executed on any computer(or) Any operating system and processor.6) Who invented by java language?Ans: 1990 - Sun Micro Systems Inc, US1993 - Oak - Java [name of Island]1995 - Sun world Conference7) Features of Java:I) SIMPLE: Java is a simple programming language . Learning and practicing java is easy bcoz of it look like with C & C++.II) OBJECT ORIENTED: Java is purely OOPS language. In Java programs we use Object & Classes. AnObject is any this that physical exist in the real world. Every object will have properties and can performactions.Properties are represented by variables, Actions are represented by methods. An Object containingvariables and Methods.Several Object may exhibit property & Actions. Which are grouped under class.III) Class is Model (or) An IDEA to create a objects . A class also contains variables & methods. Classdoes not exist physically but objects exist physically. A class is exist with out any object. But an objectcan¶t exist with out class.Objects are created by JVM on dynamic Memory, Dynamic memory is only available in JAVA.
 
IV) DISTRIBUTED: Information is distributed on various computers on a n/w. using java we can write programs which capture information & distribute it to clients.V) ROBEST(strong): JAVA programs will not crash easily. Because1) It¶s Exception Handling(runtime erros) 2) It¶s Memory Management features.Memory Allocation is done by JVM Class loader subsystem. And Memory De Allocation is done byJVM¶s garbage collector.VI) SECURE: JAVA enables the construction of virus-free and tamper-free Systems.VII) ARCHITECTURE NEUTRAL: Java Byte code is not Machine dependent . It can be run on anyMachine with any processor and with any O/S.VII) PORTABLE: Java programs give same results on all machines. Everything is clearly defined in javaspecificatio9n and nothing is left to O/S.VIII) INTERPRITER: is[work very slow] Java programs are compiled to generated the byte code this byte code can be download and interpreted by the interpreter in JVM.IX) HIGH PERFORMANCE: Along with interpreter there will be JIT compiler which enhances speed of execution.8) What is different b/w function & Method?Ans: A method is a function written inside the class.9)Why Pointers are not available in java?Ans: 1) Pointers lead to confusion to a java Programmer.2) Pointers may crash a program.[Pointers is memory allocation].3) Using pointers harm full programs like virus, and Hacking Programs can be created.10) Which Algorithm is used by Garbage Collector to delete variables & Object from Memory?Ans: Mark and Sweep.11) JVM Architecture:Class Loader Subsystem : does the following thingsi)
 
It load¶s . class files into memory.ii)
 
It verifies Byte code instructions.iii)
 
It allot the required memory to run the java programs.
 
Diagram:The memory allocated by class loader subsystem is divided into 5 parts. Called ³ Run time Data Area´.i)
 
Method area: I s some part memory in jvm , It is stores class code, method code are stored init.ii)
 
Heap: This is the place, where Objects are created.iii)
 
Java Stacks: These are the places where Java methods are executed. Java stacks containframes . Each method is an executed separate frame. Frame is one part of JVM.iv)
 
Program counter Register: They contain memory and of the instructing to be executed mymicroprocessor.v)
 
 Native method stack: These are the places where native methods[c-language function] areexecuted. C program is can run by JVM. Header file code must be copied in JVM and after executed native method interface is a program that links up native method libraries to JVM.vi)
 
Execution Engine: It contains interpreter and JIT compiler which convert the byte code intomachine language. [Garbage collector is standard specification in JVM].Hot Spot: It is a block of code allotted to JIT compiler for improving the speed of execution.12) What is API Document?Ans: API document is .html file that contains description of all the features of s/w ,product, Technologies.13) What is difference b/w #include and Import?Ans :
# include
makes the compiler to copy the entire header file code into a C , C ++ programs. Does itincrease program size and waste memory & process time.But Import make JVM to goto Java Library, execute the code there and finally substitute the result intothe java program. No code is copied into java program.

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->