basic java viva questions and answers pdf

Basic java viva questions and answers pdf

File Name: basic java viva questions and answers .zip
Size: 2694Kb
Published: 16.11.2020

Submit an interview question

Core Java Basic Interview Questions And Answers Pdf

Top Java Interview Questions and Answers for Freshers in 2021

These are the most asked interview questions for freshers years experienced. This question list will help you to crack java interview. I have already shared detailed answer over here before, you might find it helpful as well.

What is JVM? The Java interpreter along with the run time environment required to run the Java application in called as Java virtual machine JVM. What is the most important feature of Java? Java is a platform independent language.

Submit an interview question

What is JVM? The Java interpreter along with the run time environment required to run the Java application in called as Java virtual machine JVM. What is the most important feature of Java?

Java is a platform independent language. What do you mean by platform independence? Platform independence means that we can write and compile the java code in one platform eg Windows and can execute the class in any other supported platform eg Linux,Solaris,etc.

JDK is Java Development Kit which is for development purpose and it includes execution environment also. What are the access modifiers in Java? There are 3 access modifiers. Public, protected and private, and the default one if no identifier is specified is called friendly, but programmer cannot specify the friendly identifier explicitly.

What is are packages? A package is a collection of related classes and interfaces providing access protection and namespace management. What is meant by Inheritance and what are its advantages? Inheritance is the process of inheriting all the features from a class. The advantages of inheritance are reusability of code and accessibility of variables and methods of the super class by sub classes.

What is the difference between superclass and subclass? A super class is a class that is inherited whereas sub class is a class that does the inheriting. What is an abstract class? An abstract class is a class designed with implementation gaps for sub classes to fill in and is deliberately incomplete. What are the states associated in the thread? Thread contains ready, running, waiting and dead states. What is synchronization? Synchronization is the mechanism that ensures that only one thread is accessed the resources at a time.

What is deadlock? What is an applet? Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser. What is the lifecycle of an applet? How do you set security in applets? What is a layout manager and what are different types of layout managers available in java AWT?

A layout manager is an object that is used to organize components in a container. What is JDBC? This API consists of a set of classes and interfaces to enable programs to write pure Java Database applications. What are drivers available? What is stored procedure? Stored procedure is a group of SQL statements that forms a logical unit and performs a particular task. Stored Procedures are used to encapsulate a set of operations or queries to execute on database.

What is the Java API? The Java API is a large collection of ready-made software components that provide many useful capabilities, such as graphical user interface GUI widgets. Why there are no global variables in Java? Global variables are globally accessible.

Java does not support globally accessible variables due to following reasons: 1 The global variables breaks the referential transparency 2 Global variables creates collisions in namespace. What are Encapsulation, Inheritance and Polymorphism? Encapsulation is the mechanism that binds together code and data it manipulates and keeps both safe from outside interference and misuse.

Inheritance is the process by which one object acquires the properties of another object. Polymorphism is the feature that allows one interface to be used for general class actions.

What is the use of bin and lib in JDK? Bin contains all tools such as javac, appletviewer, awt tool, etc. What is method overloading and method overriding? Method overloading: When a method in a class having the same method name with different arguments is said to be method overloading. Method overriding : When a method in a class having the same method name with same arguments is said to be method overriding. What is the difference between this and super? It is very difficult to remember a set of numbers IP address to connect to the Internet.

It maps one particular IP address to a string of characters. For example, www. What is URL? Remote Method Invocation RMI allows java object that executes on one machine and to invoke the method of a Java object to execute on another machine. The steps involved in developing an RMI object are: a Define the interfaces b Implementing these interfaces c Compile the interfaces and their implementations with the java compiler d Compile the server implementation with RMI compiler e Run the RMI registry f Run the application.

What is RMI architecture? RMI architecture consists of four layers and each layer performs specific functions: a Application layer — contains the actual object definition. Why Java? There is no perfect language, and you certainly will be programming in other languages in the future. Do I really have to type in the programs in the book to try them out?

Everyone should type in HelloWorld. There are not many. Java compilers treat them all to be equivalent. What are the rules regarding quotation marks? What is the meaning of the words public, static and void? What happens when you omit a brace or misspell one of the words, like public or static or main? It depends upon precisely what you do. Try it out and see.

Can a program use more than one command-line argument? Yes, you can put several, though we normally use only a few. What Java systems libraries and methods are available for me to use? How should I format my code? How should I comment my code? What exactly is a. How do I get the symbol on my keyboard? Java prints out a ton of digits when I System. Use the method System. Try it and see.

This convention was inherited from ancestral. For example, System. Why do I need to declare the type of a variable in Java? Why is the type for real numbers called double? Historically, the type for floating point numbers was float, but they had limited accuracy. The type double was introduced as a floating point type with twice as much accuracy. Is it correct to say that using parentheses can only change Almost, with one surprising exception. Your email address will not be published.

The Java interpreter along with the run time environment required to run the Java application in called as Java virtual machine JVM 2. What is the base class of all classes? Applet is a dynamic and interactive program that runs inside a web page displayed by a java capable browser Posted on by Leave a comment. Leave a Reply Cancel reply Your email address will not be published.

Core Java Basic Interview Questions And Answers Pdf

There is the list of core Java interview questions. If there is any core Java interview question that has been asked to you, kindly post it in the ask question section. The answers to the Core Java interview questions are short and to the point. The core Java interview questions are categorized in Basics of Java interview questions, OOPs interview questions, String Handling interview questions, Multithreading interview questions, collection interview questions, JDBC interview questions, etc. Java is the high-level, object-oriented , robust, secure programming language, platform-independent, high performance, Multithreaded, and portable programming language.

Top Java Interview Questions and Answers for Freshers in 2021

It's a no-brainer that Java is one of the leading programming options for bagging a lucrative job. After all, the class-based, general-purpose, object-oriented programming language is one of the most widely used programming languages in the world. So, here are top interview questions on Java and answers that will help you bag a Java job or, at the very least, enhance your learning. The Java interview questions are recommended for both beginners and professionals as well as for Software Developers and Android Applications Developers.

I was getting a lot of emails and comments to create java interview questions and answers PDF eBook. Below image shows the cover page of this eBook. Just subscribe to my newsletter and you will get this eBook first thing in the email. So go ahead, subscribe from any of the forms on the website and get this eBook too.

Download PDF We have compiled the most frequently asked Java Interview Questions and Answers that will help you prepare for the Basic Java interview questions that an interviewer might ask you during your interview. In this list of Basic Java interview questions, we have covered all commonly asked basic and advanced Core Java interview questions with detailed answers to help you clear the job interview. The following list contains important Core Java interview questions for freshers as well as Java interview questions and answers for experienced programmers to help them prepare for the interview. This detailed guide of interview questions for Java Programming will help you to crack your Job interview easily. What is the difference between an Inner Class and a Sub-Class?

Data structure and algorithm

The main distinction between fail-fast and fail-safe iterators is whether or not the collection can be modified while it is being iterated. Fail-safe iterators allow this; fail-fast iterators do not. Fail-fast iterators operate directly on the collection itself. During iteration, fail-fast iterators fail as soon as they realize that the collection has been modified i. Fail-safe iterates operate on a cloned copy of the collection and therefore do not throw an exception if the collection is modified during iteration. Which of them is most efficient for adding and removing elements from the list?

 А вдруг Танкадо ошибся? - вмешался Фонтейн.  - Быть может, он не знал, что бомбы были одинаковые. - Нет! - отрезала Сьюзан.  - Он стал калекой из-за этих бомб. И он знал про них. ГЛАВА 126 - Одна минута.

60 Advanced Java Interview Questions

 - Я кое о чем тебе не рассказал.

0 comments

Leave a reply