1. Which of the following option leads to the portability and security of Java? The applet makes the Java code secure and portable Bytecode is executed by JVM Use of exception handling Dynamic binding between objects Ans: Bytecode is executed by JVM 2. Which of the following is not OOPS concept in Java? Inheritance Encapsulation Polymorphism Compilation Ans: Compilation 3. Which concept of Java is a way of converting real world objects in terms of class? Polymorphism Encapsulation Abstraction Inheritance Ans: Abstraction 4. Which component is used to compile, debug and execute java program? JVM JDK JIT JRE Ans:JDK 5. What is use of interpreter? They convert bytecode to machine language code They read high level code and execute them They are intermediated between JIT and JVM It is a synonym for JIT Ans: They read high level code and execute them 6. Which of the following is a valid declaration of an object of class Box? Box obj = new Box(); Box obj = new Box; o
Hey Shouters!! In this tutorial, we will discuss the most important java interview questions of Java Language. These questions are simple and easy to remember. Read the answers carefully. :: Some Basic Definitions in Programming :: Problem : A Problem can be apparently defined as a question raised for inquiry, consideration, or solution. Instruction: A specific task in a computer processor can be done via Instruction. Statement: An instruction written in a high-level language. A statement directs the computer to perform a specified action. Program: A computer program is a collection of instructions that can be executed by a computer to perform a specific task. Task: In computing, a task is a unit of execution or a unit of work. Process: In computing, a process is the instance of a computer program that is being executed by one or many threads. It contains the program code and its activity Thread: Threads are a way for a program to divide (termed "split") it
Comments
Post a Comment