<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8988749</id><updated>2011-04-21T15:53:14.349-07:00</updated><title type='text'>Java Interview Questions</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://venkatelr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://venkatelr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>venkat</name><uri>http://www.blogger.com/profile/18369244820233652333</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8988749.post-113015670222542540</id><published>2005-10-24T05:23:00.000-07:00</published><updated>2005-10-24T05:25:02.236-07:00</updated><title type='text'>ABAP Questions with Answers</title><content type='html'>1. What is the typical structure of an ABAP/4 program?  &lt;br /&gt;ANS:- &lt;br /&gt;   HEADER ,BODY,FOOTER. &lt;br /&gt;&lt;br /&gt;2. What are field symbols and field groups.?  &lt;br /&gt;    Have you used "component idx of structure" clause with field groups?  &lt;br /&gt;ANS:- &lt;br /&gt;    Field symbols:-  &lt;br /&gt;&lt;br /&gt;    Field groups :- &lt;br /&gt;&lt;br /&gt;3. What should be the approach for writing a BDC program?  &lt;br /&gt;ANS:- &lt;br /&gt;STEP 1: CONVERTING THE LEGACY SYSTEM DATA TO A FLAT FILE to internal table CALLED "CONVERSION". &lt;br /&gt;STEP 2: TRANSFERING THE FLAT FILE INTO SAP SYSTEM CALLED "SAP DATA TRANSFER". &lt;br /&gt;STEP 3: DEPENDING UPON THE BDC TYPE i)call transaction(Write the program explicity) &lt;br /&gt;         ii) create sessions (sessions are created and processed.if success data will transfer). &lt;br /&gt;&lt;br /&gt;4. What is a batch input session?  &lt;br /&gt;ANS:- &lt;br /&gt;BATCH INPUT SESSION is an intermediate step between internal table and database table.  &lt;br /&gt;Data along with the action is stored in session ie data for screen fields, to which screen it is passed,program name behind it, and how next screen is processed. &lt;br /&gt;&lt;br /&gt;5. What is the alternative to batch input session?  &lt;br /&gt;ANS:- &lt;br /&gt;Call transaction. &lt;br /&gt;&lt;br /&gt;6. A situation: An ABAP program creates a batch input session.  &lt;br /&gt;    We need to submit the program and the batch session in back ground. How to do it?  &lt;br /&gt;ANS:- &lt;br /&gt;     go to SM36 and create background job by giving  &lt;br /&gt;     job name,job class and job steps (JOB SCHEDULING)  &lt;br /&gt;&lt;br /&gt;8. What are the problems in processing batch input sessions?  &lt;br /&gt;    How is batch input process different from processing online?  &lt;br /&gt;ANS:- &lt;br /&gt;PROBLEMS:- &lt;br /&gt; i) If the user forgets to opt for keep session then the session will be automatically removed from the session queue(log remains).  However if session is processed we may delete it manually. &lt;br /&gt;ii)if session processing fails data will not be transferred to SAP database table. &lt;br /&gt;&lt;br /&gt;10. What are the different types of data dictionary objects?  &lt;br /&gt;ans:- &lt;br /&gt;tables, structures, views, domains, data elements, lock objects, Matchcode objects. &lt;br /&gt;&lt;br /&gt;11. How many types of tables exists and what are they in data dictionary?  &lt;br /&gt;ans :- &lt;br /&gt;4 types of tables &lt;br /&gt;i)Transparent tables - Exists with the same structure both in dictionary as well as in database exactly with the same data and fields.   Both Opensql and Nativesql can be used. &lt;br /&gt;&lt;br /&gt;ii)Pool tables &amp; iii)Cluster tables -  &lt;br /&gt;These are logical tables that are arranged as records of transparent tables.one cannot use native sql on these tables &lt;br /&gt;(only opensql).They are not managable directly using database system tools. &lt;br /&gt;&lt;br /&gt;iv)Internal tables - . &lt;br /&gt;&lt;br /&gt;12. What is the step by step process to create a table in data dictionary?  &lt;br /&gt;ans:- &lt;br /&gt;   step 1: creating domains(data type,field length,range). &lt;br /&gt;   step 2: creating data elements(properties and type for a table  &lt;br /&gt;field). &lt;br /&gt;   step 3: creating tables(SE11). &lt;br /&gt;&lt;br /&gt;13. Can a transparent table exist in data dictionary but not in the data base physically? &lt;br /&gt;ANS:- NO. &lt;br /&gt;TRANSPARENT TABLE DO EXIST WITH THE SAME STRUCTURE BOTH IN THE DICTIONARY AS WELL AS IN THE DATABASE,EXACTLY WITH THE SAME DATA AND FIELDS. &lt;br /&gt;&lt;br /&gt;14. What are the domains and data elements?  &lt;br /&gt;ANS:- &lt;br /&gt;DOMAINS : FORMAL DEFINITION OF THE DATA TYPES.THEY SET ATTRIBUTES SUCH  AS DATA TYPE,LENGTH,RANGE. &lt;br /&gt;DATA ELEMENT : A FIELD IN R/3 SYSTEM IS A DATA ELEMENT. &lt;br /&gt;&lt;br /&gt;15. Can you create a table with fields not referring to data elements?  &lt;br /&gt;ANS:-  &lt;br /&gt;YES.  eg:- ITAB LIKE SPFLI.here we are referening to a data object(SPFLI) not data element. &lt;br /&gt;&lt;br /&gt;16. What is the advantage of structures? How do you use them in the ABAP programs?  &lt;br /&gt;ANS:- &lt;br /&gt;Adv:- GLOBAL EXISTANCE(these could be used by any other program without creating it again).  &lt;br /&gt;&lt;br /&gt;17. What does an extract statement do in the ABAP program?  &lt;br /&gt;ANS:- &lt;br /&gt;Once you have declared the possible record types as field groups and defined their structure, you can fill the extract dataset using the following statements:  &lt;br /&gt;EXTRACT &lt;fg&gt;. &lt;br /&gt;&lt;br /&gt;When the first EXTRACT statement occurs in a program, the system creates the extract dataset and adds the first extract record to it. In each subsequent EXTRACT statement, the new extract record is added to the dataset &lt;br /&gt;&lt;br /&gt;EXTRACT HEADER. &lt;br /&gt;&lt;br /&gt;When you extract the data, the record is filled with the current values of the corresponding fields. &lt;br /&gt;&lt;br /&gt;As soon as the system has processed the first EXTRACT statement for a field group &lt;fg&gt;, the structure of the corresponding extract record in the extract dataset is fixed. You can no longer insert new fields into the field groups &lt;fg&gt; and HEADER. If you try to modify one of the field groups afterwards and use it in another EXTRACT statement, a runtime error occurs.  &lt;br /&gt;&lt;br /&gt;By processing EXTRACT statements several times using different field groups, you fill the extract dataset with records of different length and structure. Since you can modify field groups dynamically up to their first usage in an EXTRACT statement, extract datasets provide the advantage that you need not determine the structure at the beginning of the program. &lt;br /&gt;&lt;br /&gt;18. What is a collect statement? How is it different from append?  &lt;br /&gt;ANS:- &lt;br /&gt;If an entry with the same key already exists, the COLLECT statement does not append a new line, but adds the contents of the numeric fields in the work area to the contents of the numeric fields in the existing entry.  &lt;br /&gt;&lt;br /&gt;19. What is open sql vs native sql?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;20. What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;21. What is the meaning of ABAP/4 editor integrated with ABAP/4 data dictionary? &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;22. What are the events in ABAP/4 language?  &lt;br /&gt;ANS:- &lt;br /&gt;Initialization, At selection-screen,Start-of-selection,end-of-selection,top-of-page,end-of-page, At line-selection,At user-command,At PF,Get,At New,At LAST,AT END, AT FIRST.  &lt;br /&gt;&lt;br /&gt;23. What is an interactive report?  &lt;br /&gt;What is the obvious diff of such report compared with classical type reports?  &lt;br /&gt;ANS:-  &lt;br /&gt;An Interactive report is a dynamic drill down report that produces the list on users choice. &lt;br /&gt;diff:- &lt;br /&gt;a)  THE LIST PRODUCED BY CLASSICAL REPORT DOESN'T allow user to interact with the system &lt;br /&gt;    the list produced by interactive report allows the user to interact with the system. &lt;br /&gt;b)  ONCE A CLASSICAL REPORT EXECUTED USER LOOSES CONTROL.IR USER HAS CONTROL. &lt;br /&gt;c)  IN CLASSICAL REPORT DRILLING IS NOT POSSIBLE.IN INTERACTIVE DRILLING IS POSSIBLE. &lt;br /&gt;&lt;br /&gt;24. What is a drill down report?  &lt;br /&gt;ANS:- &lt;br /&gt;Its an Interactive report where in the user can get more relavent data by selecting explicitly. &lt;br /&gt;&lt;br /&gt;25. How do you write a function module in SAP? describe.  &lt;br /&gt;ANS:- &lt;br /&gt;creating function module:- &lt;br /&gt;called program - se37-creating funcgrp,funcmodule by assigning attributes,importing,exporting,tables,exceptions. &lt;br /&gt;calling program - SE38-in pgm click pattern and write function name- provide export,import,tables,exception values. &lt;br /&gt;&lt;br /&gt;26. What are the exceptions in function module?  &lt;br /&gt;ANS:- &lt;br /&gt;COMMUNICATION_FAILURE  &lt;br /&gt;SYSTEM_FAILURE  &lt;br /&gt;&lt;br /&gt;27. What is a function group?  &lt;br /&gt;ANS:- &lt;br /&gt;GROUP OF ALL RELATED FUNCTIONS.  &lt;br /&gt;&lt;br /&gt;28. How are the date and time field values stored in SAP?  &lt;br /&gt;ANS:- &lt;br /&gt;DD.MM.YYYY.  HH:MM:SS  &lt;br /&gt;&lt;br /&gt;30. Name a few data dictionary objects? //rep// &lt;br /&gt;ANS:- &lt;br /&gt;TABLES,VIEWS,STRUCTURES,LOCK OBJECTS,MATCHCODE OBJECTS. &lt;br /&gt;&lt;br /&gt;31. What happens when a table is activated in DD?  &lt;br /&gt;ANS:- &lt;br /&gt;It is available for any insertion,modification and updation of records by any user. &lt;br /&gt;&lt;br /&gt;32. What is a check table and what is a value table?  &lt;br /&gt;Check table will be at field level checking. &lt;br /&gt;Value table will be at domain level checking ex: scarr table is check table for carrid. &lt;br /&gt;&lt;br /&gt;33. What are match codes? describe?  &lt;br /&gt;ans:- &lt;br /&gt;It is a similar to table index that gives list of possible values for either primary keys or non-primary keys. &lt;br /&gt;&lt;br /&gt;34. What transactions do you use for data analysis?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;35. What is table maintenance generator?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;36. What are ranges? What are number ranges?  &lt;br /&gt;ANS:- &lt;br /&gt;    max,min values provided in selection screens. &lt;br /&gt;&lt;br /&gt;37. What are select options and what is the diff from parameters?  &lt;br /&gt;ANS:- &lt;br /&gt;select options provide ranges where as parameters do not.  &lt;br /&gt;&lt;br /&gt;SELECT-OPTIONS declares an internal table which is automatically filled with values or ranges  &lt;br /&gt;of values entered by the end user. For each SELECT-OPTIONS , the system creates a selection table. &lt;br /&gt;&lt;br /&gt;SELECT-OPTIONS &lt;SEL&gt; FOR &lt;field&gt;. &lt;br /&gt;&lt;br /&gt;A selection table is an internal table with fields SIGN, OPTION, LOW and HIGH.  &lt;br /&gt;The type of LOW and HIGH is the same as that of &lt;field&gt;.  &lt;br /&gt;The SIGN field can take the following values: I Inclusive (should apply) E Exclusive (should not apply) &lt;br /&gt;The OPTION field can take the following values: EQ Equal GT Greater than NE Not equal BT Between LE Less  &lt;br /&gt;than or equal NB Not between LT Less than CP Contains pattern GE Greater than or equal NP No pattern. &lt;br /&gt;diff:- &lt;br /&gt;PARAMETERS allow users to enter a single value into an internal field within a report.  &lt;br /&gt;SELECT-OPTIONS allow users to fill an internal table with a range of values.  &lt;br /&gt;&lt;br /&gt;For each PARAMETERS or SELECT-OPTIONS statement you should define text elements by choosing  &lt;br /&gt;Goto - Text elements - Selection texts - Change.  &lt;br /&gt;&lt;br /&gt;Eg:- Parameters name(30). &lt;br /&gt;when the user executes the ABAP/4 program,an input field for 'name' will appear on the selection screen.You can change the comments on the left side of the input fields by using text elements as described in Selection Texts. &lt;br /&gt;&lt;br /&gt;38. How do you validate the selection criteria of a report?  &lt;br /&gt;And how do you display initial values in a selection screen?  &lt;br /&gt;ANS:- &lt;br /&gt;validate :- by using match code objects. &lt;br /&gt;display :- Parameters &lt;name&gt; default 'xxx'. &lt;br /&gt;               select-options &lt;name&gt; for spfli-carrid. &lt;br /&gt;&lt;br /&gt;39. What are selection texts?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;40. What is CTS and what do you know about it?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP Workbench and in Customizing, and then transport the changes between the SAP Systems and clients in your system landscape. &lt;br /&gt;This documentation provides you with an overview of how to manage changes with the CTS and essential information on setting up your system and client landscape and deciding on a transport strategy. Read and follow this documentation when planning your development project. &lt;br /&gt;For practical information on working with the Change and Transport System, see Change and Transport Organizer and Transport Management System. &lt;br /&gt;&lt;br /&gt;41. When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;42. What is the client concept in SAP? What is the meaning of client independent?  &lt;br /&gt;ANS:- &lt;br /&gt;&lt;br /&gt;43. Are programs client dependent?  &lt;br /&gt;ANS:- &lt;br /&gt;    Yes.Group of users can access these programs with a client no. &lt;br /&gt;&lt;br /&gt;44. Name a few system global variables you can use in ABAP programs?  &lt;br /&gt;ANS:- &lt;br /&gt;SY-SUBRC,SY-DBCNT,SY-LILLI,SY-DATUM,SY-UZEIT,SY-UCOMM,SY-TABIX..... &lt;br /&gt;SY-LILLI IS ABSOLUTE NO OF LINES FROM WHICH THE EVENT WAS TRIGGERED. &lt;br /&gt;&lt;br /&gt;45. What are internal tables? How do you get the number of lines in an internal table?  &lt;br /&gt;How to use a specific number occurs statement?  &lt;br /&gt;ANS:- &lt;br /&gt; i)It is a standard data type object which exists only during the runtime of the program. &lt;br /&gt;They are used to perform table calculations on subsets of database tables and for re-organising the contents of database tables according to users need. &lt;br /&gt;ii)using SY-DBCNT. &lt;br /&gt;iii)The number of memory allocations the system need to allocate for the next record population. &lt;br /&gt;&lt;br /&gt;46. How do you take care of performance issues in your ABAP programs?  &lt;br /&gt;Performance of ABAPs can be improved by minimizing the amount of data to be transferred.  &lt;br /&gt;The data set must be transferred through the network to the applications, so reducing the amount OF time and also reduces the network traffic. &lt;br /&gt;&lt;br /&gt;Some measures that can be taken are:  &lt;br /&gt;&lt;br /&gt;- Use views defined in the ABAP/4  DDIC (also has the advantage of better reusability). &lt;br /&gt;- Use field list (SELECT clause) rather than SELECT *. &lt;br /&gt;- Range tables should be avoided (IN operator) &lt;br /&gt;- Avoid nested SELECTS.  &lt;br /&gt;&lt;br /&gt;i)system tools &lt;br /&gt;&lt;br /&gt;ii)field symbols and field groups. &lt;br /&gt;ans:- &lt;br /&gt;Field Symbols : Field symbols are placeholders for existing fields. A Field Symbol does not physically reserve space for a field,but points to a field which is not known until runtime of the program. &lt;br /&gt;eg:-  FIELD-SYMBOL &lt;FS&gt; [&lt;TYPE&gt;].  &lt;br /&gt;&lt;br /&gt;Field groups :  A field group combines several fields under one name.At runtime,the INSERT command is used to define which data fields are assigned to which field group. &lt;br /&gt;There should always be a HEADER field group that defines how the extracted data will be sorted,the data is sorted by the fields grouped under the HEADER field group. &lt;br /&gt;&lt;br /&gt;47. What are datasets?  &lt;br /&gt;ANS:- &lt;br /&gt;The sequential files(ON APPLICATION SERVER) are called datasets. They are used for file handling in SAP. &lt;br /&gt;&lt;br /&gt;48. How to find the return code of a statement in ABAP programs?  &lt;br /&gt;ANS:- &lt;br /&gt;Using function modules. &lt;br /&gt;&lt;br /&gt;49. What are interface/conversion programs in SAP?  &lt;br /&gt;ANS :  &lt;br /&gt;CONVERSION : LEGACY SYSTEM TO FLAT FILE. &lt;br /&gt;INTERFACE  : FLAT FILE TO SAP SYSTEM. &lt;br /&gt;&lt;br /&gt;50. Have you used SAP supplied programs to load master data?  &lt;br /&gt;&lt;br /&gt;51. What are the techniques involved in using SAP supplied programs?  &lt;br /&gt;Do you prefer to write your own programs to load master data? Why?  &lt;br /&gt;&lt;br /&gt;52. What are logical databases? What are the advantages/disadvantages of logical databases?  &lt;br /&gt;ANS:- &lt;br /&gt;To read data from a database tables we use logical database. &lt;br /&gt;A logical database provides read-only access to a group of related tables to an ABAP/4 program. &lt;br /&gt;&lt;br /&gt;adv:- &lt;br /&gt;The programmer need not worry about the primary key for each table.Because Logical database knows how the different tables relate to each other,and can issue the SELECT command with proper where clause to retrieve the data. &lt;br /&gt;i)An easy-to-use standard user interface. &lt;br /&gt;ii)check functions which check that user input is complete,correct,and plausible. &lt;br /&gt;iii)meaningful data selection. &lt;br /&gt;iv)central authorization checks for database accesses. &lt;br /&gt;v)good read access performance while retaining the hierarchical data view determined by the application logic.  &lt;br /&gt;&lt;br /&gt;disadv:- &lt;br /&gt;i)If you donot specify a logical database in the program attributes,the GET events never occur. &lt;br /&gt;ii)There is no ENDGET command,so the code block associated with an event ends with the next event  &lt;br /&gt;statement (such as another GET or an END-OF-SELECTION).  &lt;br /&gt;&lt;br /&gt;53. What specific statements do you using when writing a drill down report?  &lt;br /&gt;ans:- &lt;br /&gt;AT LINE-SELECTION,AT USER-COMMAND,AT PF. &lt;br /&gt;&lt;br /&gt;54. What are different tools to report data in SAP? What all have you used?  &lt;br /&gt;ans:- &lt;br /&gt;&lt;br /&gt;55. What are the advantages and disadvantages of ABAP/4 query tool?  &lt;br /&gt;&lt;br /&gt;56. What are the functional areas? User groups? and how does ABAP/4 query work in relation to these?  &lt;br /&gt;&lt;br /&gt;57. Is a logical database a requirement/must to write an ABAP/4 query?  &lt;br /&gt;&lt;br /&gt;59. What are Change header/detail tables? Have you used them?  &lt;br /&gt;&lt;br /&gt;60. What do you do when the system crashes in the middle of a BDC batch session?  &lt;br /&gt;ans:- &lt;br /&gt;we will look into the error log file (SM35). &lt;br /&gt;&lt;br /&gt;61. What do you do with errors in BDC batch sessions?  &lt;br /&gt;ANS:- &lt;br /&gt;We look into the list of incorrect session and process it again. To correct incorrect session we analyize the session to determine which screen and value produced the error.For small errors in data we correct them interactively otherwise &lt;br /&gt;modify batch input program that has generated the session or many times even the datafile. &lt;br /&gt;&lt;br /&gt;62. How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs?  &lt;br /&gt;ans:- &lt;br /&gt;go to SM36 and create background job by giving job name,job class and job steps(JOB SCHEDULING) &lt;br /&gt;&lt;br /&gt;63. Is it possible to run host command from SAP environment? How do you run?  &lt;br /&gt;&lt;br /&gt;64. What kind of financial periods exist in SAP? What is the relavent table for that?  &lt;br /&gt;&lt;br /&gt;65. Does SAP handle multiple currencies? Multiple languages?  &lt;br /&gt;ans:- &lt;br /&gt;Yes. &lt;br /&gt;&lt;br /&gt;66. What is a currency factoring technique?  &lt;br /&gt;&lt;br /&gt;67. How do you document ABAP/4 programs? Do you use program documentation menu option?  &lt;br /&gt;&lt;br /&gt;68. What is SAPscript and layout set?  &lt;br /&gt;ans:- &lt;br /&gt;The tool which is used to create layout set is called SAPscript. Layout set is a design document. &lt;br /&gt;&lt;br /&gt;69. What are the ABAP/4 commands that link to a layout set?  &lt;br /&gt;ans:- &lt;br /&gt;control commands,system commands, &lt;br /&gt;&lt;br /&gt;70. What is output determination?  &lt;br /&gt;&lt;br /&gt;71. What are IDOCs?  &lt;br /&gt;ans:- &lt;br /&gt;IDOCs are intermediate documents to hold the messages as a container. &lt;br /&gt;&lt;br /&gt;72. What are screen painter? menu painter? Gui status? ..etc.  &lt;br /&gt;ans:- &lt;br /&gt;dynpro - flow logic + screens. &lt;br /&gt;menu painter -  &lt;br /&gt;GUI Status - It is subset of the interface elements(title bar,menu bar,standard tool bar,push buttons) used for a certain screen. &lt;br /&gt;The status comprises those elements that are currently needed by the transaction. &lt;br /&gt;&lt;br /&gt;73. What is screen flow logic? What are the sections in it? Explain PAI and PBO.  &lt;br /&gt;ans:- &lt;br /&gt;The control statements that control the screen flow. &lt;br /&gt;PBO - This event is triggered before the screen is displayed. &lt;br /&gt;PAI - This event is responsible for processing of screen after the user enters the data and clicks the pushbutton. &lt;br /&gt;&lt;br /&gt;74. Overall how do you write transaction programs in SAP?  &lt;br /&gt;ans:-  &lt;br /&gt;Create program-SE93-create transcode-Run it from command field. &lt;br /&gt;&lt;br /&gt;75. Does SAP has a GUI screen painter or not? If yes what operating systems is it available on? What is the other type of screen painter called?  &lt;br /&gt;&lt;br /&gt;76. What are step loops? How do you program pagedown pageup in step loops?  &lt;br /&gt;ans:- &lt;br /&gt;step loops are repeated blocks of field in a screen. &lt;br /&gt;&lt;br /&gt;77. Is ABAP a GUI language?  &lt;br /&gt;ANS:- &lt;br /&gt;Yes. &lt;br /&gt;ABAP IS AN EVENT DRIVEN LANGUAGE. &lt;br /&gt;&lt;br /&gt;78. Normally how many and what files get created when a transaction program is written?  &lt;br /&gt;What is the XXXXXTOP program?  &lt;br /&gt;ans:- &lt;br /&gt;ABAP/4 program. &lt;br /&gt;DYNPRO &lt;br /&gt;&lt;br /&gt;79. What are the include programs?  &lt;br /&gt;ANS:- &lt;br /&gt;When the same sequence of statements in several programs are to be written repeadly they are coded in include programs (External programs) and  are included in ABAP/4 programs. &lt;br /&gt;&lt;br /&gt;80. Can you call a subroutine of one program from another program?  &lt;br /&gt;ans:-  Yes- only external subroutines Using 'SUBMIT' statement. &lt;br /&gt;&lt;br /&gt;81. What are user exits? What is involved in writing them? What precations are needed?  &lt;br /&gt;&lt;br /&gt;82. What are RFCs? How do you write RFCs on SAP side?  &lt;br /&gt;&lt;br /&gt;83. What are the general naming conventions of ABAP programs?  &lt;br /&gt;ANS:- &lt;br /&gt;Should start with Y or Z. &lt;br /&gt;&lt;br /&gt;84. How do you find if a logical database exists for your program requrements?  &lt;br /&gt;ans:- &lt;br /&gt;SLDB-F4. &lt;br /&gt;&lt;br /&gt;85. How do you find the tables to report from when the user just tell you the transaction he uses? And all the underlying data is from SAP structures?  &lt;br /&gt;ans:- &lt;br /&gt;Transcode is entered in command field to open the table.Utilities-Table contents-display. &lt;br /&gt;&lt;br /&gt;86. How do you find the menu path for a given transaction in SAP?  &lt;br /&gt;ans:- &lt;br /&gt;&lt;br /&gt;87. What are the different modules of SAP?  &lt;br /&gt;ans:- &lt;br /&gt;FI,CO,SD,MM,PP,HR. &lt;br /&gt;&lt;br /&gt;89. How do you get help in ABAP?  &lt;br /&gt;ans:- &lt;br /&gt;HELP-SAP LIBRARY,by pressing F1 on a keyword. &lt;br /&gt;&lt;br /&gt;90. What are different ABAP/4 editors? What are the differences?  &lt;br /&gt;ans:- &lt;br /&gt;&lt;br /&gt;91. What are the different elements in layout sets?  &lt;br /&gt;ans:- &lt;br /&gt;PAGES,Page windows,Header,Paragraph,Character String,Windows. &lt;br /&gt;&lt;br /&gt;92. Can you use if then else, perform ..etc statements in sap script?  &lt;br /&gt;ans:- &lt;br /&gt;yes. &lt;br /&gt;&lt;br /&gt;93. What type of variables normally used in sap script to output data?  &lt;br /&gt;&lt;br /&gt;94. How do you number pages in sapscript layout outputs?  &lt;br /&gt;&lt;br /&gt;95. What takes most time in SAP script programming?  &lt;br /&gt;ANS:- &lt;br /&gt;LAYOUT DESIGN AND LOGO INSERTION. &lt;br /&gt;&lt;br /&gt;96. How do you use tab sets in layout sets?  &lt;br /&gt;&lt;br /&gt;97. How do you backup sapscript layout sets? Can you download and upload? How?  &lt;br /&gt;&lt;br /&gt;98. What are presentation and application servers in SAP?  &lt;br /&gt;ANS:- &lt;br /&gt;The application layer of an R/3 System is made up of the application servers and the message server. Application programs in an R/3 System are run on application servers. The application servers communicate with the presentation components, the database, and also with each other, using the message server. &lt;br /&gt;&lt;br /&gt;99. In an ABAP/4 program how do you access data that exists on a presentation server vs on an application server?  &lt;br /&gt;ans:- &lt;br /&gt;i)using loop statements. &lt;br /&gt;ii)flat  &lt;br /&gt;&lt;br /&gt;100. What are different data types in ABAP/4?  &lt;br /&gt;ans:- &lt;br /&gt;     Elementary -  &lt;br /&gt;          predefined C,D,F,I,N,P,T,X. &lt;br /&gt;          userdefined TYPES. &lt;br /&gt; ex: see in intel book page no 35/65 &lt;br /&gt;&lt;br /&gt;     Structured -  &lt;br /&gt;         predefined    TABLES. &lt;br /&gt;         userdefined Field Strings and internal tables. &lt;br /&gt;&lt;br /&gt;101. What is difference between session method and Call Transaction?  &lt;br /&gt;ans:- &lt;br /&gt;&lt;br /&gt;102. Setting up a BDC program where you find information from?  &lt;br /&gt;ans:-  &lt;br /&gt;&lt;br /&gt;103. What has to be done to the packed fields before submitting to a BDC session.  &lt;br /&gt;ans:- &lt;br /&gt;     fields converted into character type. &lt;br /&gt;&lt;br /&gt;104. What is the structure of a BDC sessions.  &lt;br /&gt;ans:- &lt;br /&gt;      BDCDATA (standard structure). &lt;br /&gt;&lt;br /&gt;105. What are the fields in a BDC_Tab Table.  &lt;br /&gt;ans:- &lt;br /&gt;      program,dynpro,dynbegin,fnam,fval. &lt;br /&gt;&lt;br /&gt;106. What do you define in the domain and data element.  &lt;br /&gt;Technical details like  &lt;br /&gt;&lt;br /&gt;107. What is the difference between a pool table and a transparent table and how they are stored at the database level.  &lt;br /&gt;ans:- &lt;br /&gt;ii)Pool tables is a logical representation of transparent tables .Hence no existence at database level. Where as transparent tables are physical tables and exist at database level. &lt;br /&gt;&lt;br /&gt;108. What is cardinality?  &lt;br /&gt;For cardinality one out of two (domain or data element) should be the same for Ztest1 and Ztest2 tables. M:N &lt;br /&gt;Cardinality specifies the number of dependent(Target) and independent (source) entities which can be in a relationship.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8988749-113015670222542540?l=venkatelr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatelr.blogspot.com/feeds/113015670222542540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8988749&amp;postID=113015670222542540' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/113015670222542540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/113015670222542540'/><link rel='alternate' type='text/html' href='http://venkatelr.blogspot.com/2005/10/abap-questions-with-answers.html' title='ABAP Questions with Answers'/><author><name>venkat</name><uri>http://www.blogger.com/profile/18369244820233652333</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8988749.post-113015487218879066</id><published>2005-10-24T04:51:00.000-07:00</published><updated>2005-10-24T05:10:46.726-07:00</updated><title type='text'>SAP ABAP Interivew Questions</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;ABAP Technical Interview Questions:&lt;br /&gt;&lt;br /&gt;1. What is the typical structure of an ABAP program?&lt;br /&gt;2. What are field symbols and field groups.? Have you used "component idx of structure" clause with field groups?&lt;br /&gt;3. What should be the approach for writing a BDC program?&lt;br /&gt;4. What is a batch input session?&lt;br /&gt;5. What is the alternative to batch input session?&lt;br /&gt;6. A situation: An ABAP program creates a batch input session. We need to submit the program and the batch session in background. How to do it?&lt;br /&gt;7. What is the difference between a pool table and a transparent table and how they are stored at the database level?&lt;br /&gt;8. What are the problems in processing batch input sessions? How is batch input process different from processing on line?&lt;br /&gt;9. What do you define in the domain and data element?&lt;br /&gt;10. What are the different types of data dictionary objects?&lt;br /&gt;11. How many types of tables exist and what are they in data dictionary?&lt;br /&gt;12. What is the step-by-step process to create a table in data dictionary?&lt;br /&gt;13. Can a transparent table exist in data dictionary but not in the database physically?&lt;br /&gt;14. What are the domains and data elements?&lt;br /&gt;15. Can you create a table with fields not referring to data elements?&lt;br /&gt;16. What is the advantage of structures? How do you use them in the ABAP programs?&lt;br /&gt;17. What does an extract statement do in the ABAP program?&lt;br /&gt;18. What is a collect statement? How is it different from append?&lt;br /&gt;19. What is open sql vs native sql?&lt;br /&gt;20. What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?&lt;br /&gt;21. What is the meaning of ABAP editor integrated with ABAP data dictionary?&lt;br /&gt;22. What are the events in ABAP language?&lt;br /&gt;23. What is an interactive report? What is the obvious diff of such report compared with classical type reports?&lt;br /&gt;24. What is a drill down report?&lt;br /&gt;25. How do you write a function module in SAP? Describe.&lt;br /&gt;26. What are the exceptions in function module?&lt;br /&gt;27. What is a function group?&lt;br /&gt;28. How are the date abd time field values stored in SAP?&lt;br /&gt;29. What are the fields in a BDC_Tab Table?&lt;br /&gt;30. Name a few data dictionary objects?&lt;br /&gt;31. What happens when a table is activated in DD?&lt;br /&gt;32. What is a check table and what is a value table?&lt;br /&gt;33. What are match codes? Describe?&lt;br /&gt;34. What transactions do you use for data analysis?&lt;br /&gt;35. What is table maintenance generator?&lt;br /&gt;36. What are ranges? What are number ranges?&lt;br /&gt;37. What are select options and what is the diff from parameters?&lt;br /&gt;38. How do you validate the selection criteria of a report? And how do you display initial values in a selection screen?&lt;br /&gt;39. What are selection texts?&lt;br /&gt;40. What is CTS and what do you know about it?&lt;br /&gt;41. When a program is created and need to be transported to prodn does selection texts always go with it? if not how do you make sure? Can you change the CTS entries? How do you do it?&lt;br /&gt;42. What is the client concept in SAP? What is the meaning of client independent?&lt;br /&gt;43. Are programs client dependent?&lt;br /&gt;44. Name a few system global variables you can use in ABAP programs?&lt;br /&gt;45. What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?&lt;br /&gt;46. How do you take care of performance issues in your ABAP programs?&lt;br /&gt;47. What are datasets?&lt;br /&gt;48. How to find the return code of a stmt in ABAP programs?&lt;br /&gt;49. What are interface/conversion programs in SAP?&lt;br /&gt;50. Have you used SAP supplied programs to load master data?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why?&lt;br /&gt;2. What are logical databases? What are the advantages/disadvantages of logical databases?&lt;br /&gt;3. What specific statements do you using when writing a drill down report?&lt;br /&gt;4. What are different tools to report data in SAP? What all have you used?&lt;br /&gt;5. What are the advantages and disadvantages of ABAP query tool?&lt;br /&gt;6. What are the functional areas? User groups? How does ABAP query work in relation to these?&lt;br /&gt;7. Is a logical database a requirement/must to write an ABAP query?&lt;br /&gt;8. What is the structure of a BDC sessions.&lt;br /&gt;9. What are Change header/detail tables? Have you used them?&lt;br /&gt;10. What do you do when the system crashes in the middle of a BDC batch session?&lt;br /&gt;11. What do you do with errors in BDC batch sessions?&lt;br /&gt;12. How do you set up background jobs in SAP? What are the steps? What are the event driven batch jobs?&lt;br /&gt;13. Is it possible to run host command from SAP environment? How do you run?&lt;br /&gt;14. What kind of financial periods exist in SAP? What is the relevant table for that?&lt;br /&gt;15. Does SAP handle multiple currencies? Multiple languages?&lt;br /&gt;16. What is a currency factoring technique?&lt;br /&gt;17. How do you document ABAP programs? Do you use program documentation menu option?&lt;br /&gt;18. What is SAPscript and layout set?&lt;br /&gt;19. What are the ABAP commands that link to a layout set?&lt;br /&gt;20. What is output determination?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8988749-113015487218879066?l=venkatelr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatelr.blogspot.com/feeds/113015487218879066/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8988749&amp;postID=113015487218879066' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/113015487218879066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/113015487218879066'/><link rel='alternate' type='text/html' href='http://venkatelr.blogspot.com/2005/10/sap-abap-interivew-questions.html' title='SAP ABAP Interivew Questions'/><author><name>venkat</name><uri>http://www.blogger.com/profile/18369244820233652333</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8988749.post-113015443304540541</id><published>2005-10-24T04:43:00.000-07:00</published><updated>2005-10-24T04:47:13.050-07:00</updated><title type='text'>ABAP INTERVIEW QUESTIONS</title><content type='html'>&lt;p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;ABAP Interview Questions &lt;/span&gt;&lt;/p&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;p&gt;&lt;br /&gt;1. How data is stored in cluster table? &lt;br /&gt;Each field of cluster table behaves as tables which contains the no. of entries.  &lt;/p&gt;&lt;p&gt;2. What are client dependant objects in abap/sap? &lt;br /&gt;SAP Script layout, text element, and some DDIC objects.  &lt;/p&gt;&lt;p&gt;3. On which even we can validate the input fields in module progams?&lt;br /&gt;In PAI (Write field statement on field you want to validate, if you want to validate group of fields put in chain and End chain statement.) &lt;br /&gt;&lt;br /&gt;4. In selection screen I have three fields, plant mat no and material group. If I input plant how do I get the mat no and material group based on plant dynamically? &lt;br /&gt;AT SELECTION-SCREEN ON VALUE-REQUEST FOR MATERIAL.  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' to get material and material group for the plant. &lt;br /&gt;&lt;br /&gt;5. How do you get output from IDOC? &lt;br /&gt;Data in IDOc is stored in segments, the output from Idoc is obtained by reading the data stored in its respective segments. &lt;br /&gt;&lt;br /&gt;6. When top of the page event is triggered? &lt;br /&gt;After excuteing first write statement in start-of-selection event. &lt;br /&gt;&lt;br /&gt;7. Can we create field without data element and how? &lt;br /&gt;In SE11 one option is available above the fields strip. Data element/ direct type. &lt;br /&gt;&lt;br /&gt;8. How do we debug sapscript?  Go to SE71 give lay set name , go to utilities select debugger mode on.&lt;br /&gt;&lt;br /&gt;9. Which transaction code can I used to analyze the performance of ABAP program. &lt;br /&gt;TCode AL21.&lt;br /&gt;&lt;br /&gt;10. How can I copy a standard table to make my own z_table.&lt;br /&gt;Go to transaction SE11. Then there is one option to copy table. Press that button.  Enter the name of the standard table and in the Target table enter Z table name and press enter. &lt;/span&gt;&lt;/p&gt;==========================================================================&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;fore more click here &lt;/span&gt;&lt;a href="http://abapinterview.blogspot.com"&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;abapinterview.blogspot.com&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8988749-113015443304540541?l=venkatelr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatelr.blogspot.com/feeds/113015443304540541/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8988749&amp;postID=113015443304540541' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/113015443304540541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/113015443304540541'/><link rel='alternate' type='text/html' href='http://venkatelr.blogspot.com/2005/10/abap-interview-questions.html' title='ABAP INTERVIEW QUESTIONS'/><author><name>venkat</name><uri>http://www.blogger.com/profile/18369244820233652333</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8988749.post-112373692048337081</id><published>2005-08-10T22:00:00.000-07:00</published><updated>2005-08-10T22:09:00.213-07:00</updated><title type='text'>Java Interview Questions</title><content type='html'>&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;Hi Friends I'm Venkat. I strugled alot while facing technical interview. Now I wanted to encourage new tech guys like U to post more interview question so our new generation techies will not face our problem again.&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Thanks&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;Venkat&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;These are the list of java interview questions I have collected so far and I will post more soon.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:85%;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;What is garbage collection? &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:85%;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;What is the process that is responsible for doing that in java? - Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What kind of thread is the Garbage collector thread? &lt;/strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;- It is a daemon thread.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is a daemon thread?&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;- These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.&lt;br /&gt;How will you invoke any external process in Java? - Runtime.getRuntime().exec(….)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the finalize method do?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;- Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is mutable object and immutable object?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, …) If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, …)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the basic difference between string and stringbuffer object?&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;- String is an immutable object. StringBuffer is a mutable object.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the purpose of Void class?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is reflection?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes, and the use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the base class for Error and Exception?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- Throwable&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the byte range?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;-128 to 127&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the implementation of destroy method in java.. is it native or java code?&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;- This method is not implemented.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is a package?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the approaches that you will follow for making a program very efficient?&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;- By avoiding too much of static methods avoiding the excessive and unnecessary use of synchronized methods Selection of related classes based on the application (meaning synchronized classes for multiuser and non-synchronized classes for single user) Usage of appropriate design patterns Using cache methodologies for remote invocations Avoiding creation of variables within a loop and lot more.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is a DatabaseMetaData?&lt;/strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;- Comprehensive information about the database as a whole.&lt;br /&gt;What is Locale? - A Locale object represents a specific geographical, political, or cultural region&lt;br /&gt;How will you load a specific locale? - Using ResourceBundle.getBundle(…);&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is JIT and its use?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- Really, just a very fast compiler… In this incarnation, pretty much a one-pass compiler – no offline computations. So you can’t look at the whole method, rank the expressions according to which ones are re-used the most, and then generate code. In theory terms, it’s an on-line problem.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Is JVM a compiler or an interpreter?&lt;/strong&gt; - Interpreter&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;When you think about optimization, what is the best way to findout the time/memory consuming process?&lt;/strong&gt; - Using profiler&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the purpose of assert keyword used in JDK1.4.x?&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;- In order to validate certain expressions. It effectively replaces the if block and automatically throws the AssertionError on failure. This keyword should be used for the critical arguments. Meaning, without that the method does nothing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How will you get the platform dependent values like line separator, path separator, etc., ?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- Using Sytem.getProperty(…) (line.separator, path.separator, …)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is skeleton and stub? what is the purpose of those?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;- Stub is a client side representation of the server, which takes care of communicating with the remote server. Skeleton is the server side representation. But that is no more in use… it is deprecated long before in JDK.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the final keyword denotes?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- final keyword denotes that it is the final implementation for that method or variable or class. You can’t override that method/variable/class any more.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the significance of ListIterator?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- You can iterate back and forth.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is the major difference between LinkedList and ArrayList?&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;- LinkedList are meant for sequential accessing. ArrayList are meant for random accessing.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is nested class?&lt;/strong&gt; - If all the methods of a inner class is static then it is a nested class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is inner class?&lt;/strong&gt; - If the methods of the inner class can only be accessed via the instance of the inner class, then it is called inner class.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is composition?&lt;/strong&gt; - Holding the reference of the other class within some other class is known as composition.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is aggregation?&lt;/strong&gt; - It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What are the methods in Object?&lt;/strong&gt; - clone, equals, wait, finalize, getClass, hashCode, notify, notifyAll, toString&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Can you instantiate the Math class? &lt;/strong&gt;- You can’t instantiate the math class. All the methods in this class are static. And the constructor is not public.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is singleton?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;- It is one of the design pattern. This falls in the creational pattern of the design pattern. There will be only one instance for that entire JVM. You can achieve this by having the private constructor in the class. For eg., public class Singleton { private static final Singleton s = new Singleton(); private Singleton() { } public static Singleton getInstance() { return s; } // all non static methods … }&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What is DriverManager?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;- The basic service to manage set of JDBC drivers.&lt;br /&gt;What is Class.forName() does and how it is useful? - It loads the class into the ClassLoader. It returns the Class. Using that you can get the instance ( “class-instance".newInstance() ).&lt;br /&gt;Inq adds a question: Expain the reason for each keyword of&lt;br /&gt;public static void main(String args[])&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8988749-112373692048337081?l=venkatelr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatelr.blogspot.com/feeds/112373692048337081/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8988749&amp;postID=112373692048337081' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/112373692048337081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/112373692048337081'/><link rel='alternate' type='text/html' href='http://venkatelr.blogspot.com/2005/08/java-interview-questions.html' title='Java Interview Questions'/><author><name>venkat</name><uri>http://www.blogger.com/profile/18369244820233652333</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8988749.post-112373644586122193</id><published>2005-08-10T21:59:00.000-07:00</published><updated>2005-08-10T22:00:45.870-07:00</updated><title type='text'></title><content type='html'>&lt;p&gt;&lt;br /&gt;&lt;strong&gt;What is garbage collection?&lt;br /&gt;&lt;/strong&gt;What is the process that is responsible for doing that in java? - Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process&lt;br /&gt;&lt;strong&gt;What kind of thread is the Garbage collector thread?&lt;br /&gt;&lt;/strong&gt;- It is a daemon thread.&lt;br /&gt;What is a daemon thread? - These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by killing them abruptly.&lt;br /&gt;How will you invoke any external process in Java? - Runtime.getRuntime().exec(….)&lt;br /&gt;What is the finalize method do? - Before the invalid objects get garbage collected, the JVM give the user a chance to clean up some resources before it got garbage collected.&lt;br /&gt;What is mutable object and immutable object? - If a object value is changeable then we can call it as Mutable object. (Ex., StringBuffer, …) If you are not allowed to change the value of an object, it is immutable object. (Ex., String, Integer, Float, …)&lt;br /&gt;What is the basic difference between string and stringbuffer object? - String is an immutable object. StringBuffer is a mutable object.&lt;br /&gt;What is the purpose of Void class? - The Void class is an uninstantiable placeholder class to hold a reference to the Class object representing the primitive Java type void.&lt;br /&gt;What is reflection? - Reflection allows programmatic access to information about the fields, methods and constructors of loaded classes, and the use reflected fields, methods, and constructors to operate on their underlying counterparts on objects, within security restrictions.&lt;br /&gt;What is the base class for Error and Exception? - Throwable&lt;br /&gt;What is the byte range? -128 to 127&lt;br /&gt;What is the implementation of destroy method in java.. is it native or java code? - This method is not implemented.&lt;br /&gt;What is a package? - To group set of classes into a single unit is known as packaging. Packages provides wide namespace ability.&lt;br /&gt;What are the approaches that you will follow for making a program very efficient? - By avoiding too much of static methods avoiding the excessive and unnecessary use of synchronized methods Selection of related classes based on the application (meaning synchronized classes for multiuser and non-synchronized classes for single user) Usage of appropriate design patterns Using cache methodologies for remote invocations Avoiding creation of variables within a loop and lot more.&lt;br /&gt;What is a DatabaseMetaData? - Comprehensive information about the database as a whole.&lt;br /&gt;What is Locale? - A Locale object represents a specific geographical, political, or cultural region&lt;br /&gt;How will you load a specific locale? - Using ResourceBundle.getBundle(…);&lt;br /&gt;What is JIT and its use? - Really, just a very fast compiler… In this incarnation, pretty much a one-pass compiler – no offline computations. So you can’t look at the whole method, rank the expressions according to which ones are re-used the most, and then generate code. In theory terms, it’s an on-line problem.&lt;br /&gt;Is JVM a compiler or an interpreter? - Interpreter&lt;br /&gt;When you think about optimization, what is the best way to findout the time/memory consuming process? - Using profiler&lt;br /&gt;What is the purpose of assert keyword used in JDK1.4.x? - In order to validate certain expressions. It effectively replaces the if block and automatically throws the AssertionError on failure. This keyword should be used for the critical arguments. Meaning, without that the method does nothing.&lt;br /&gt;How will you get the platform dependent values like line separator, path separator, etc., ? - Using Sytem.getProperty(…) (line.separator, path.separator, …)&lt;br /&gt;What is skeleton and stub? what is the purpose of those? - Stub is a client side representation of the server, which takes care of communicating with the remote server. Skeleton is the server side representation. But that is no more in use… it is deprecated long before in JDK.&lt;br /&gt;What is the final keyword denotes? - final keyword denotes that it is the final implementation for that method or variable or class. You can’t override that method/variable/class any more.&lt;br /&gt;What is the significance of ListIterator? - You can iterate back and forth.&lt;br /&gt;What is the major difference between LinkedList and ArrayList? - LinkedList are meant for sequential accessing. ArrayList are meant for random accessing.&lt;br /&gt;What is nested class? - If all the methods of a inner class is static then it is a nested class.&lt;br /&gt;What is inner class? - If the methods of the inner class can only be accessed via the instance of the inner class, then it is called inner class.&lt;br /&gt;What is composition? - Holding the reference of the other class within some other class is known as composition.&lt;br /&gt;What is aggregation? - It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.&lt;br /&gt;What are the methods in Object? - clone, equals, wait, finalize, getClass, hashCode, notify, notifyAll, toString&lt;br /&gt;Can you instantiate the Math class? - You can’t instantiate the math class. All the methods in this class are static. And the constructor is not public.&lt;br /&gt;What is singleton? - It is one of the design pattern. This falls in the creational pattern of the design pattern. There will be only one instance for that entire JVM. You can achieve this by having the private constructor in the class. For eg., public class Singleton { private static final Singleton s = new Singleton(); private Singleton() { } public static Singleton getInstance() { return s; } // all non static methods … }&lt;br /&gt;What is DriverManager? - The basic service to manage set of JDBC drivers.&lt;br /&gt;What is Class.forName() does and how it is useful? - It loads the class into the ClassLoader. It returns the Class. Using that you can get the instance ( “class-instance".newInstance() ).&lt;br /&gt;Inq adds a question: Expain the reason for each keyword of&lt;br /&gt;public static void main(String args[])&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8988749-112373644586122193?l=venkatelr.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkatelr.blogspot.com/feeds/112373644586122193/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=8988749&amp;postID=112373644586122193' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/112373644586122193'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8988749/posts/default/112373644586122193'/><link rel='alternate' type='text/html' href='http://venkatelr.blogspot.com/2005/08/what-is-garbage-collection-what-is.html' title=''/><author><name>venkat</name><uri>http://www.blogger.com/profile/18369244820233652333</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
