• JavaScript Interview Questions

    Categories: Java 8(JDK1.8) ||

     What is JavaScript?JavaScript is a scripting language. It is different from Java language. It is object-based, lightweight, cross-platform translated language. It is widely used for client-side

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    Which containers use a FlowLayout as their default layout?The Panel and Applet classes use the FlowLayout as their default layout.What are peerless components?The lightweight component of Swing is cal

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    What is the purpose of using javap?The javap command disassembles a class file. The javap command displays information about the fields, constructors and methods present in a class file.Syntaxjavap fu

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    What is the transient keyword?If you define any data member as transient, it will not be serialized. By determining transient keyword, the value of variable need not persist when it is restored.What i

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    What is the purpose of the Runtime class?Java Runtime class is used to interact with a java runtime environment. Java Runtime class provides methods to execute a process, invoke GC, get total and free

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    How many class files are created on compiling the OuterClass in the following program?public class Person {  String name, age, address;  class Employee{    float sal

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    How many objects will be created in the following code?String s = new String("Welcome");  Two objects, one in string constant pool and other in non-pool(heap).What is the output of the follo

  • Java Interview Question

    Categories: Java 8(JDK1.8) ||

    What is the difference between throw and throws?throw keyword - throws keyword1) The throw keyword is used to throw an exception explicitly. - The throws keyword is used to declare an exception.2) The

  • Java Interview Question Set 10

    Categories: Java 8(JDK1.8) ||

     How can we access some class in another class in Java?There are two ways to access a class in another class.a) By using the fully qualified name: To access a class in a different package, either

  • Java Interview Question Set 1

    Categories: Java 8(JDK1.8) ||

    What is the interface?The interface is a blueprint for a class that has static constants and abstract methods. It can be used to achieve full abstraction and multiple inheritance. It is a mechanism to

  • Java Interview Question Set 8

    Categories: Java 8(JDK1.8) ||

    What is the difference between compile-time polymorphism and runtime polymorphism?There are the following differences between compile-time polymorphism and runtime polymorphism.SNcompile-time polymorp

  • Java collections interview questions Set 7

    Categories: Java 8(JDK1.8) ||

    What is hash-collision in Hashtable and how it is handled in Java?Two different keys with the same hash value are known as hash-collision. Two separate entries will be kept in a single hash bucket to

  • Java collections interview questions Set 6

    Categories: Java 8(JDK1.8) ||

    What is the difference between HashSet and HashMap?The differences between the HashSet and HashMap are listed below.a) HashSet contains only values whereas HashMap includes the entry (key, value). Has

  • Java multithreading interview questions Set 5

    Categories: Java 8(JDK1.8) ||

    Define FutureTask class in Java?Java FutureTask class provides a base implementation of the Future interface. The result can only be obtained if the execution of one task is completed, and if the comp

  • Java Multithreading Interview Set 4

    Categories: Java 8(JDK1.8) ||

    What are the main components of concurrency API?Concurrency API can be developed using the class and interfaces of java.util.Concurrent package. There are the following classes and interfaces in java.

  • Java multithreading interview questions Set 3

    Categories: Java 8(JDK1.8) ||

    What is the purpose of the Synchronized block?The Synchronized block can be used to perform synchronization on any specific resource of the method. Only one thread at a time can execute on a particula

  • Java multithreading interview questions Set 2

    Categories: Java 8(JDK1.8) ||

    Describe the purpose and working of sleep() method.The sleep() method in java is used to block a thread for a particular time, which means it pause the execution of a thread for a specific time. There

  • Java Multithreading Interview Questions Set 1

    Categories: Java 8(JDK1.8) ||

     Differentiate between process and thread?There are the following differences between the process and thread.a) A Program in the execution is called the process whereas; A thread is a subset of t

  • Java Interview Question Set 15

    Categories: Java 8(JDK1.8) ||

    What are the states in the lifecycle of a Thread?A thread can have one of the following states during its lifetime:New: In this state, a Thread class object is created using a new operator, but the th

  • Java Interview Question Set 14

    Categories: Java 8(JDK1.8) ||

     Can we declare a constructor as final?The constructor can never be declared as final because it is never inherited. Constructors are not ordinary methods; therefore, there is no sense to declare

  • Java Interview Question Set 13

    Categories: Java 8(JDK1.8) ||

    Can we change the scope of the overridden method in the subclass?Yes, we can change the scope of the overridden method in the subclass. However, we must notice that we cannot decrease the accessibilit

  • Java Interview Question Set 12

    Categories: Java 8(JDK1.8) ||

    What is object cloning?The object cloning is used to create the exact copy of an object. The clone() method of the Object class is used to clone an object. The java.lang.Cloneable interface must be im

  • Java Interview Questions Set 10

    Categories: Java 8(JDK1.8) ||

    What is this keyword in java?The this keyword is a reference variable that refers to the current object. There are the various uses of this keyword in Java. It can be used to refer to current class pr

  • Node.js Quiz MCQ Questions with Answer part 2

    Categories: Node JS || MCQ ||

    Node.js Quiz MCQ Questions with Answer part 2   Q1. What is the default scope in Node.js application.  Local  Public  Private  Global Answer: Local   Q2. Which o

  • Node.js Quiz MCQ Questions with Answer

    Categories: Node JS || MCQ ||

    Node.js Quiz MCQ Questions with Answer   1. Node.js is _____ Language. Server Side Client-Side Both Answer: Server Side   2. Node.js is written in _____________.

  • Node.js Interview Questions and Answer for freshers set 3

    Categories: Interview questions and answers || Freshers || Node JS ||

    Node.js Interview Questions and Answer for freshers (set3)   Q1. What is the framework that is used majorly in Node.js today? Answer: Node.js has multiple frameworks, namely:

  • Node.js Interview Questions and Answer set 2

    Categories: Interview questions and answers || Freshers || Node JS ||

    Node.js Interview Questions and Answer for freshers (set 2)   Q1. What is the control flow function? Answer: The control flow function is a common code snippet, which executes whenever th

  • Node.js Interview Questions and Answer for freshers

    Categories: Interview questions and answers || Freshers || Node JS ||

    Node.js Interview Questions and Answer for freshers   Q1. What is Node.js? Answer: Node.js is a very popular scripting language that is primarily used for server-side scripting requiremen

  • Java Interview Question Set 13

    Categories: Java 8(JDK1.8) ||

    What are the main uses of the super keyword?There are the following uses of super keyword.a) super can be used to refer to the immediate parent class instance variable.b) super can be used to invoke t

  • Java interview Question Set 12

    Categories: Java 8(JDK1.8) ||

     What is aggregation?Aggregation can be defined as the relationship between two classes where the aggregate class contains a reference to the class it owns. Aggregation is best described as a has

  • Java Interview Question Set 11

    Categories: Java 8(JDK1.8) ||

    How Many Type of  the Inheritance?There are five types of inheritance in Java.a) Single-level inheritanceb) Multi-level inheritancec) Multiple Inheritanced) Hierarchical Inheritancee) Hybrid Inhe

  • Java Interview Question Set 10

    Categories: Java 8(JDK1.8) ||

    Can we assign the reference to this variable?No, this cannot be assigned to any value because it always points to the current class object and this is the final reference in Java. However, if we try t

  • Java Interview Questions Set 9

    Categories: Java 8(JDK1.8) ||

    Can we make constructors static?As we know that the static context (method, block, or variable) belongs to the class, not the object. Since Constructors are invoked only when the object is created, th

  • Java Interview Questions Set 8

    Categories: Java 8(JDK1.8) ||

    Can we override the static methods?No, we can't override static methods.What is the static block?Static block is used to initialize the static data member. It is executed before the main method, at th

  • Java Interview Questions Set 7

    Categories: Java 8(JDK1.8) ||

    What is the output of the following Java program?class Test   {      int test_a, test_b;      Test(int a, int b)       { &nbs

  • Java Interview Questions Set 6

    Categories: Java 8(JDK1.8) ||

    Is constructor inherited?No, The constructor is not inherited. Can you make a constructor final?No, the constructor can't be final.What do you understand by copy constructor in Java?There is no c

  • Java Interview Questions Set 5

    Categories: Java 8(JDK1.8) ||

    What will be the initial value of an object reference which is defined as an instance variable?All object references are initialized to null in Java.What is the constructor?The constructor can be defi

  • Java Interview Questions Set 4

    Categories: Java 8(JDK1.8) ||

     What is the output of the following Java program?class Test   {      public static void main (String args[])       {      &n

  • Java Interview Questions Set 3

    Categories: Java 8(JDK1.8) ||

    What is the default value of the local variables?The local variables are not initialized to any default value, neither primitives nor object references. What are the various access specifiers in

  • Java Interview Questions Set 2

    Categories: Java 8(JDK1.8) ||

    What gives Java its 'write once and run anywhere' nature?The bytecode. Java compiler converts the Java programs into the class file (Byte Code) which is the intermediate language between source code a

  • Java Interview Questions Set 2

    Categories: Java 8(JDK1.8) ||

    How many types of memory areas are allocated by JVM?Class(Method) Area: Class Area stores per-class structures such as the runtime constant pool, field, method data, and the code for methods.Heap: It

  • Java Interview Questions Set 1

    Categories: Java 8(JDK1.8) ||

    What is Java?Java is the high-level, object-oriente, robust, secure programming language, platform-independent, high performance, Multithreaded, and portable programming language. It was developed by

  • C Programming Interview Questions Set 9

    Categories: C Programming language ||

    Write a program to print factorial of given number using recursion?#include<stdio.h>      #include<conio.h>       long factorial(int n)  &

  • C Programming Interview Questions Set 8

    Categories: C Programming language ||

    Write a program to print "hello world" without using a semicolon?#include<stdio.h>      void main(){       if(printf("hello world")){} // It prints t

  • C Programming Interview Questions Set 7

    Categories: C Programming language ||

    What is the acronym for ANSI?The ANSI stands for " American National Standard Institute." It is an organization that maintains the broad range of disciplines including photographic film, computer lang

  • C Programming Interview Questions Set 6

    Categories: C Programming language ||

    Ques. What is a union?Ans. The union is a user-defined data type that allows storing multiple types of data in a single unit. However, it doesn't occupy the sum of the memory of all members. It holds

  • C Programming Interview Questions Set 5

    Categories: C Programming language ||

    Ques. What functions are used for dynamic memory allocation in C language?Ans. malloc()The malloc() function is used to allocate the memory during the execution of the program.It does not initialize t

Top Blogs
Mr Beast Casino App Published at:- Free Billing Software for Small Businesses in India - The Ultimate Guide Published at:- Explore the Art of Baking with These Top Digital EBooks Published at:- The Influence of Slot Game Providers on Your Gaming Experience Published at:- Subset Sum Problem SubSet Sum Problem Solution using Knapsack Published at:- Knapsack top down dynamic programming using java Published at:- Sorting the Employees Salary in Each Department in Ascending Order Published at:- Sorting the Employees Salary in Each Department in Descending Order Published at:- Concatenate String array into single string Published at:- Find Customer staring with +91 mobile number Published at:- Child and Parent overridden methods Throws checked exception Published at:- Child and Parent overridden methods Throws RuntimeException Published at:- Java Class subclass interview coding questions Published at:- Printing the Number of Employees in Each Department using Java Published at:- Printing Average Age of Male and Female Employees using Java Published at:- Finding Maximum Age of Employee using Java Published at:- Printing Employee Details by Age Criteria using Java Published at:- Printing Names of All Departments from Employee Class using Java Published at:- Finding the Count of Male and Female Employees Published at:- Grouping Employees by City and Age Published at:- Employee Highest salary in each department using Java Published at:- Sort highest salary in each department Published at:- 5 Family Bonding Activities You Can Do Offline This -Ber Months Published at:- Find first repeated character in a string Published at:- Travel Tips for First-Time LRT Commuters Published at:- sum ,min ,max etc example using reduce method using Java 8 Stream API Published at:- Java 8 Stream String Null Or Empty Filter Published at:- 26 Java 8 Programs using Lambda Expression and Stream Published at:- java 8 using lambda expression and stream api | Java 8 Programs using Lambda Expression and Stream Published at:- Singleton Design Pattern and 7 Ways to Implement It 4 Ways to Break Singleton Design Pattern Published at:- The Legends of Manchester United: 10 Greatest Players in Manchester United History Published at:- Course on Computer Concepts (CCC) MCQs Published at:- Given a list of integers, separate odd and even numbers Published at:- Reports and Indices (MCQs) Published at:- Find Last duplicate character of given string using Java 8 Published at:- News Locations (MCQs) Published at:- Find duplicate elements with its count using Java 8 Published at:- How to check if list is empty in Java 8 using Optional Published at:- Write a Program to find the Maximum element in an array Published at:- count of each character in a String using Java 8 Published at:- How to print keys & values of a Map using Java 8 Published at:- How to iterate and modify values in a Map using Java 8 Published at:- How to find next, previous, tomorrow ,yesterday date using Java 8 Published at:- How to remove all duplicates from an array of integers in Java using Java 8 Published at:- How to count the number of occurrences of a given word in a list of strings using Java 8 Published at:- Write a Java program To create a map from a array of strings where the key is the string and the value is its length Published at:- How to filter and collect a list of strings that start with a specific letter using Java 8 Stream Published at:- How to sort a list of strings by length using Lambda expressions Published at:- Find the maximum value in a list of integers using Stream & Method Reference Published at:- Drop all while condition not meet dropWhile(),dropWhile(Predicate<T> predicate) Published at:- Write a program to sum an array Published at:- Write a program to sum an array without using the sum method Published at:- Write a program to append char in char ex-input- {A, B, C} output->[A_X, B_Y, C_Z] Published at:- Write a program to find the only duplicate count list in the List Published at:- How to increment salary by 2%, 5%, etc. Using java Published at:- Filter employees by age set senior if age is greater than 30 in Java 8 Lamda steam Published at:- Write a Java 8 program to get the last element of an array string/object Published at:- Filter employees by age in Java 8 Lamda steam Published at:- Write a Java 8 program to print the first 10 odd numbers Published at:- Write a Java 8 program to calculate the age of a person in years given their birthday Years Months Days Published at:- Write a Java 8 program to calculate the age of a person in years given their birthday Published at:- Write a program for group words by first character of given string | Java 8 Stream Example Published at:- Business, Economy & Banking (MCQs) Published at:- Varför ett Casino utan Svensk Licens Kan Erbjuda Större Bonusar: En Analys av Regleringsfria Spelmarknader Published at:- Can you explain how you would use Spring Boot to build a RESTful API for a project? Published at:- How do you schedule tasks in a Spring Boot application? Published at:- How do you handle exceptions in a Spring Boot application? Published at:- What is a Selector and Template Published at:- What are Components in Angular? Published at:- What is a CLI tool? Explain the importance of Angular CLI. Published at:- What are Angular advantages? Published at:- What is NPM(Node Package Manager) Published at:- How to check the angular version ? or Ways to find the angular version. Published at:- What is the difference between angular and angularjs? Published at:- What is angular Published at:- Decoding the Symbolism of Green in Highway Signage Published at:- The Ultimate Guide to the World's Best Dips Featuring Indian Chutneys Published at:- fizzbuzz problem java Published at:- pushing value at last in java | how to add element at the end of array in java Published at:- java toUpperCase() and toLowerCase() example Published at:- Scanner nextLine() ,nextInt() ,nextDouble() method in Java with Examples Published at:- Elevate Your Strategy: Top AI Tools Transforming Industries Published at:- IELTS Paraphrasing Published at:- Best practice for IELTS academic reading[IELTS 3 step strategy] Published at:- Does Watching Romantic Films Help Your Love Life? Published at:- Optimizing Remote Team Management with WorkTime Software Published at:- How to Plan the Perfect Mother's Day Brunch in 2024 Published at:- From Past to Present: Evolution of Labour Rights on World Labour Day Published at:- Casino Gambling Systems and Strategies — Make Your Right Choice Published at:- The Importance of Investing in a Quality Portable Trade Show Display Published at:- How to Support and Promote World Heritage Conservation on World Heritage Day 2024 Published at:- Cultural Significance of the Cricket World Cup Logo Designs Published at:- Unlocking Innovation: What to Expect from the Jio 5G Smart Mobile Published at:- Betting on Underdog Squads: Be or Not to Be Published at:- vi shortcuts in terminal Published at:- Maintaining a Balanced Diet in Your Third Trimester: Nurturing Both Mother and Baby Published at:- Mobile Addiction and Relationships: Finding Balance in a Tech-Driven World Published at:- Interface and Usability of 1win: User Experience Published at:- Tips and Tricks to Win with Slot Machines 2024 Published at:- Educate-Online Partner Schools | Transforming Global Education Published at:-
R4R Team
The content on R4R.co.in website is created by expert teams.We have vistots from India, Afghanistan, Bahrain, Bhutan, Canada, France, Germany, Iraq, Japan, Kenya, Kuwait, Maldives, Nepal, Netherlands, Nigeria, Oman, Qatar, Russia, Rwanda, Seychelles, Tanzania, Ukraine, UAE, UK, USA etc