Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
Java Theroy ! Easy to Learn

Java Theroy ! Easy to Learn

Ratings: (0)|Views: 26|Likes:
Published by Akshay Patel

More info:

Published by: Akshay Patel on May 24, 2012
Copyright:Attribution Non-commercial

Availability:

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

05/24/2012

pdf

text

original

 
Q. Why is Java often termed as a platform?Ans: Platform is the environment in which programsexecute. Instead of interacting with theOperatingSystem directly, Java programs runs on avirtual machine provided by Java, therefore Java isoftenreferred to as a platform also.Q. What is a bytecode?Ans: Bytecode is a set of pseudo mechaniclanguage instructions that are understood by theJVM (JavaVirtual Machine) and are independentof the underlying hardware.Q. What do you understand by JVM?Ans: JVM or Java Virtual Machine is an abstractmachine designed to be implemented on top of existingprocessors. It hides the underlying OS fromJava application. Programs written in Java arecompiled intoJava byte-code, which is theninterpreted by a special java Interpreter for aspecific platform. Actually thisJava interpreter isknown as Java Virtual Machine (JVM).Q. What is JDK (Java Development Kit)?Ans: The Java development kit comes with acollection of tools that are used for developingand running java programs.Q. What are Java APIs?Ans: The Java APIs (Application Program Interface)consist of libraries of pre-compiled codethatprogrammers can use in their application.Q. Write the five characteristics of Java/BlueJ?
Submit Your Resume
Top Companies Hiring. If Your CV Is Ready, Register Now With Shine.com!www.Shine.Com/Teaching_Jobs
Jobs for Freshers
Companies Hiring Freshers Now. Sign up for Free to Apply.MonsterIndia.com
TATA Hiring for Aug 2011
10,000+ Job Openings across India Upload Resume.Apply to TATA Now!TimesJobs.com/TATA-HiringICSE BlueJTheoryhttp://www.amitabhsirkiclasses.org.in/materials/icse/jtheory.htm1
 
o248/20/201111:27PMAns: 1. Write Once Run Anywhere 2. Light weightcode 3. Security 4. Built in Graphics 5. ObjectOrientedLanguage 6. Support Multimedia 7. PlatformIndependent. 8. Open Product.Q. What do you know about BlueJ?Ans: BlueJ is a Java development environment. It isan IDE (Integrated Development Environment),whichincludes an editor a debugger and aviewer.Q. How you create, compile and execute a program in Java or BlueJ? Explain youranswer?Ans: Create: Click on new class button from BlueJeditor, then type the class name a program iconwill becreated. double click on it, a program editorwill be open, erase the code and type your programcoding.Compile: click the compile button on theleft of the window or right click on the class iconand selectcompile from the menu options. Execute:Right click on the class icon and select new classname option. Adialogue box appears type the nameof the object. A object icon will be created at thebottom. Right clickon the object icon and selectthe method we want to execute.Q. The two types of Java programs/applications are? [2007]Ans: The two types of Java Applications are'Internet Applets' and 'Stand alone application'.Q. State the distinguishing features of Java and C++?Ans: (i) Java does not support operatoroverloading.(ii) Java does not use pointers.(iii)There are no header files in Java.(iv) Java doesnot have template classes as in C++.Q. State the differences between Syntax errors and Logical errors.Ans: The compiler can only translate a program if the program is syntactically correct; otherwisethecompilation fails and you will not be able to
 
run your program. Syntax refers to the structure of  yourprogram and the rules about that structure.Thesecond type of error is a run-time error, so-calledbecause the error does not appear until you runtheprogram. In Java, run-time errors occur whenthe interpreter is running the byte code andsomething goeswrong.Q. "Object is an instance of a class", explainAns: Object of a class contains data and functionsprovided in a class. it possesses all the featuresof aclass. Hence object is termed as instance of aclass.Q. Name four basic features of JAVA.Ans: Basic features of Java as follows:i) It is anobject oriented language.ii) Java program is bothcompiled and interpreted.iii) Java program can beapplication or applet.iv) java is case sensitivelanguage, i.e. it distinguished upper and lower caseletters.Q. Differentiate between Compiler and Interpreter.Ans: Compiler convert source code to machinelanguage whole at a time. Interpreter convertsprogramfrom high level language to machine levellanguage line by line or statement by statement.Q. Java uses compiler as well as interpreter, explain.Ans:Java compilerconverts Java source code tobyte code. This byte code is further convertedintomachine code to make it applicable for thespecific platform by using interpreter.Q. Differentiate between Source code andByte code.Ans: Source code is the program developed in JavaLanguage, which is input to a computer throughthekeyboard. Compiler converts source code to bytecode for interpretation.Q. Differentiate between Testing and Debugging.Ans: Testing is the process of checking programlogic manually to ensure whether it contains anyerror ornot. Debugging is the process of removingerrors from a program.Elementary Concepts of Object & Class[ICSE Syllabus on this Topic]Modeling entities and their behavior by objects.A class as a specification of objects and as an objectfactory, computation

You're Reading a Free Preview

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