I want to print "Hello" even before main() is executed. How will you acheive that?
Correct Answer
Print the statement inside a static block of code Static blocks get executed when the class gets loaded into the memory and even before the creation of an object Hence it will be executed before the main() method And it will be executed only once
Correct Answer: RDO is Hierarchy model where as ADO is Object model ADO can access data from both flat files as well as the data bases Ie, It is encapsulation of DAO, RDO , OLE that is why we call it as OLE-DB Technology
3. What is the difference between ADODC and ADODB?
Correct Answer: - When u build connection with database through coding, then its ADODBWhen u build connection with database through ADO component, then its ADODC - ADODB is a ActiveXdll and ADODC is a ActiveXcontrol - No Need to bind with controls in ADODB whereas in ADODC we should bind with controls
Correct Answer: Fact is key performance indicator to analyze the businessFrom the additive values, which are used to analyse the business by using report generation Dimension is used to analyze the fact, are the non-additive ( text format) values, Which are used to drill down reportsWithout dimension there is no meaning for fact Measure is the quantity of data we create to process
5. What are the tasks of a Business Analyst in Software Development Life Cycle?
Correct Answer: Generally a business analyst covers several stages in Software Development Life Cycle Like: Client Consulting, Client Requirement Study, Planning for business needs, Business Requirement Documenting, Work on functional requirement, Prepare test data with inputs from end users, Document use case scenarios, Help Testing team with test plan and testing, Help end users with user acceptance testing UAT, Go live and post production support tasks
6. What are the restriction imposed on a static method or a static block of code?
Correct Answer: A static method should not refer to instance variables without creating an instance and cannot use "this" operator to refer the instance
7. What is the difference between Serial and Throughput Garbage collector ?
Correct Answer: The throughput garbage collector uses a parallel version of the young generation collector and is meant to be used with applications that have medium to large data sets On the other hand, the serial collector is usually adequate for most small applications (those requiring heaps of up to approximately 100MB on modern processors)
Correct Answer: HashCode method return int value So the Hash value is the int value returned by the hash function If you want to do equality check or want to use your object as key in HashMap, we must override hashcode and equals() method
9. Which of the following are capabilities of functions in JavaScript?
Correct Answer: Cloud computing architecture consists of many layers which help it to be more organized and can be managed from one place The layers are as follows: 1 Cloud controller or CLC is the top most level in the hirerachy which is used to manage the virtualized resources like servers, network and storage with the user APIs 2 Walrus is used for the storage and act as a storage controller to manage the demands of the users It maintains a scalable approach to control the virtual machine images and user data 3 Cluster Controller or CC is used to control all the virtual machines for executions the virtual machines are stored on the nodes and manages the virtual networking between Virtual machines and external users 4 Storage Controller or SC provides a storage area in block form that are dynamically attached by Virtual machines 5 Node Controller or NC is at the lowest level and provides the functionality of a hypervisor that controls the VMs activities, which includes execution, management and termination of many instances