Call Us Now!
+91 9884412301 | +91 9600112302
info@credosystemz.com
Credo SystemzCredo Systemz
  • Courses
    • TRENDING TECHNOLOGIES TRAINING
    • RPA TRAINING
    • CLOUD COMPUTING TRAINING
    • BIG DATA TRAINING
    • WEB DEVELOPMENT TRAINING
    • MOBILE APPLICATION TRAINING
    • SOFTWARE TESTING TRAINING
    • MICROSOFT TECHNOLOGIES TRAINING
    • JAVA TRAINING
    • PROJECT MANAGEMENT TRAINING
    • DATA WAREHOUSING TRAINING
    • ORACLE TRAINING
    • DATABASE DEVELOPER TRAINING
    • OTHER TRAININGS
    • TRENDING TECHNOLOGIES
      Python Training Data Science Training Angular Training React JS Training ORACLE PRIMAVERA TRAINING Machine Learning Training Hadoop Training Amazon Web Services Training DevOps Training Azure Training PySpark Training MEAN Stack Training
    • RPA TRAINING
      Blue Prism Training UiPath Training Automation Anywhere
    • CLOUD COMPUTING
      Amazon Web Services Training AWS with Devops Training Azure Training AZ 104 Azure Administrator AZ 204 Azure Developer AZ 300 Azure Architect AZ 303 Azure Architect AZ 400 Azure Devops Google Cloud Platform Salesforce Training OpenNebula Training OpenStack Training OpenSpan Training
    • BIG DATA TRAINING
      Hadoop Training Big Data Analytics Training Spark Training
    • WEB DEVELOPMENT
      Angular Training Node JS Training React JS Training React Native Training Ionic Framework Training MEAN Stack Training PHP Training JavaScript Training CoffeeScript Training Less JS Training Graphics Design Training HTML Training CSS Training
    • MOBILE APPLICATION
      Android Training iOS Training iOS Swift Training Kotlin Training Flutter Dart Training
    • SOFTWARE TESTING
      Manual Testing Training UFT / QTP Training Selenium Training API Testing Training Selenium with Python Training Perfecto Mobile Testing Training ETL Testing Training JMeter Training LoadRunner Training Performance Engineering Big Data Testing Training Protractor Testing Training
    • MICROSOFT TECHNOLOGIES
      Dot Net Training MVC Framework ASP.NET MVC with Angular SharePoint Training Advanced Excel Training Excel Macro Training Azure Training Azure Infrastructure Solutions AZ 300 Azure Architect
    • JAVA TRAINING
      Core Java Training Java 8 Training Java J2EE Training Advanced Java Training Hibernate Training Spring Training Struts Training
    • PROJECT MANAGEMENT
      Oracle Primavera Training Primavera P6 Online Training Microsoft Project Training PMP Training ITIL Training Prince2 Training Scrum Master Training Business Analytics Training
    • DATA WAREHOUSING
      Tableau Training Power BI Training Qlikview Training Qlik Sense Training Informatica Training Microstrategy Training Teradata Training Cognos Training SAS Training
    • ORACLE TRAINING
      Oracle PL/SQL Training Oracle DBA Training Oracle Apps Technical Training Oracle Apps SCM Training Oracle Apps HRMS Training Oracle Apps Finance Training Oracle RAC Training PeopleSoft HCM Training PeopleSoft Finance Training
    • DATABASE DEVELOPER
      MongoDB Training Apache Cassandra Training Sybase Training Informix Training Performance Tuning Training
    • OTHER TRAININGS
      Ethical Hacking Training C C++ Training Unix Shell Scripting Training Tensorflow Training Data Modeling Training Workday Training PEGA Training Digital Marketing Training CCNA Training Arduino Training Elm Training Go Programming Training Rust Programming Training CYBER SECURITY TRAINING BIZTALK SERVER TRAINING Spoken English Course
  • Fresher Courses
    • ANGULAR TRAINING
    • REACT TRAINING
    • PYTHON TRAINING
    • JAVA TRAINING
    • SELENIUM TRAINING
  • Placements
    • Career Guidance
      • Interview Questions
      • Resume Building
      • Job Opportunities
    • OVERALL PLACEMENTS
  • About Us
    • Online Training
    • Corporate Training
    • Events
    • Reviews
      • Video Reviews
    • Become an instructor
  • Training
    • Trending Technologies Training
    • RPA TRAINING in Chennai
    • Cloud Computing Training
    • Big Data Hadoop Training in Chennai
    • Web Development Training
    • Mobile Application Training
    • Software Testing Training
    • Microsoft Technologies Training
    • Java Training
    • Project Management Training
    • Data Warehousing Training
    • Oracle Training
    • Database Developer Training
    • Other Training
  • Blogs
    • GENERAL
      • TOP SKILL TO GET A JOB IN MNC
      • INTERVIEW TIPS FOR FRESHERS AND EXPERIENCE
      • TOP TRENDING TECHNOLOGIES
    • DATA SCIENCE
      • MACHINE LEARNING VS DATA SCIENCE
      • DATA SCIENCE INTERVIEW QUESTION AND ANSWER
    • PYTHON
      • WHY LEARN PYTHON
      • JAVA VS PYTHON
      • WHAT IS PYTHON
    • PRIMAVERA
      • LIFECYCLE OF PRIMAVERA
      • EPPM VS PPM
      • PROJECT MANAGEMENT STEPS
    • PMP
      • PMP CERTIFICATION
    • AWS
      • TOP 5 AWS SERVICES
      • AWS VS OPENSTACK
      • AMAZON VS AZURE VS GOOGLE CLOUD
      • WHY DEVELOPERS SHOULD LEARN AWS
    • ANGULAR
      • ANGULAR INTERVIEW QUESTIONS
      • ANGULAR VS REACT VS VUE
    • REACT
      • TOP REASON TO LEARN REACT
    • BLUE PRISM
      • BLUE PRISM VS UI PATH
      • WHAT IS RPA
    • UI PATH
      • RPA CERTIFICATION
    • CLOUD COMPUTING
      • BEST CLOUD COMPUTING SERVICES
    • DEVOPS
      • DEVOPS OVERVIEW
    • NODE JS
      • NODE JS CERTIFICATION
    • HADOOP
      • HADOOP CERTIFICATION
    • AZURE
      • AZURE CERTIFICATION
    • SOFTWARE TESTING
      • HOW TO BECOME A SOFTWARE TESTER
      • MOVE FROM MANUAL TO AUTOMATION TESTING
      • HOW MUCH IS JAVA REQUIRED FOR SELENIUM TESTING
  • Contact Us
  • Courses
    • TRENDING TECHNOLOGIES TRAINING
    • RPA TRAINING
    • CLOUD COMPUTING TRAINING
    • BIG DATA TRAINING
    • WEB DEVELOPMENT TRAINING
    • MOBILE APPLICATION TRAINING
    • SOFTWARE TESTING TRAINING
    • MICROSOFT TECHNOLOGIES TRAINING
    • JAVA TRAINING
    • PROJECT MANAGEMENT TRAINING
    • DATA WAREHOUSING TRAINING
    • ORACLE TRAINING
    • DATABASE DEVELOPER TRAINING
    • OTHER TRAININGS
    • TRENDING TECHNOLOGIES
      Python Training Data Science Training Angular Training React JS Training ORACLE PRIMAVERA TRAINING Machine Learning Training Hadoop Training Amazon Web Services Training DevOps Training Azure Training PySpark Training MEAN Stack Training
    • RPA TRAINING
      Blue Prism Training UiPath Training Automation Anywhere
    • CLOUD COMPUTING
      Amazon Web Services Training AWS with Devops Training Azure Training AZ 104 Azure Administrator AZ 204 Azure Developer AZ 300 Azure Architect AZ 303 Azure Architect AZ 400 Azure Devops Google Cloud Platform Salesforce Training OpenNebula Training OpenStack Training OpenSpan Training
    • BIG DATA TRAINING
      Hadoop Training Big Data Analytics Training Spark Training
    • WEB DEVELOPMENT
      Angular Training Node JS Training React JS Training React Native Training Ionic Framework Training MEAN Stack Training PHP Training JavaScript Training CoffeeScript Training Less JS Training Graphics Design Training HTML Training CSS Training
    • MOBILE APPLICATION
      Android Training iOS Training iOS Swift Training Kotlin Training Flutter Dart Training
    • SOFTWARE TESTING
      Manual Testing Training UFT / QTP Training Selenium Training API Testing Training Selenium with Python Training Perfecto Mobile Testing Training ETL Testing Training JMeter Training LoadRunner Training Performance Engineering Big Data Testing Training Protractor Testing Training
    • MICROSOFT TECHNOLOGIES
      Dot Net Training MVC Framework ASP.NET MVC with Angular SharePoint Training Advanced Excel Training Excel Macro Training Azure Training Azure Infrastructure Solutions AZ 300 Azure Architect
    • JAVA TRAINING
      Core Java Training Java 8 Training Java J2EE Training Advanced Java Training Hibernate Training Spring Training Struts Training
    • PROJECT MANAGEMENT
      Oracle Primavera Training Primavera P6 Online Training Microsoft Project Training PMP Training ITIL Training Prince2 Training Scrum Master Training Business Analytics Training
    • DATA WAREHOUSING
      Tableau Training Power BI Training Qlikview Training Qlik Sense Training Informatica Training Microstrategy Training Teradata Training Cognos Training SAS Training
    • ORACLE TRAINING
      Oracle PL/SQL Training Oracle DBA Training Oracle Apps Technical Training Oracle Apps SCM Training Oracle Apps HRMS Training Oracle Apps Finance Training Oracle RAC Training PeopleSoft HCM Training PeopleSoft Finance Training
    • DATABASE DEVELOPER
      MongoDB Training Apache Cassandra Training Sybase Training Informix Training Performance Tuning Training
    • OTHER TRAININGS
      Ethical Hacking Training C C++ Training Unix Shell Scripting Training Tensorflow Training Data Modeling Training Workday Training PEGA Training Digital Marketing Training CCNA Training Arduino Training Elm Training Go Programming Training Rust Programming Training CYBER SECURITY TRAINING BIZTALK SERVER TRAINING Spoken English Course
  • Fresher Courses
    • ANGULAR TRAINING
    • REACT TRAINING
    • PYTHON TRAINING
    • JAVA TRAINING
    • SELENIUM TRAINING
  • Placements
    • Career Guidance
      • Interview Questions
      • Resume Building
      • Job Opportunities
    • OVERALL PLACEMENTS
  • About Us
    • Online Training
    • Corporate Training
    • Events
    • Reviews
      • Video Reviews
    • Become an instructor
  • Training
    • Trending Technologies Training
    • RPA TRAINING in Chennai
    • Cloud Computing Training
    • Big Data Hadoop Training in Chennai
    • Web Development Training
    • Mobile Application Training
    • Software Testing Training
    • Microsoft Technologies Training
    • Java Training
    • Project Management Training
    • Data Warehousing Training
    • Oracle Training
    • Database Developer Training
    • Other Training
  • Blogs
    • GENERAL
      • TOP SKILL TO GET A JOB IN MNC
      • INTERVIEW TIPS FOR FRESHERS AND EXPERIENCE
      • TOP TRENDING TECHNOLOGIES
    • DATA SCIENCE
      • MACHINE LEARNING VS DATA SCIENCE
      • DATA SCIENCE INTERVIEW QUESTION AND ANSWER
    • PYTHON
      • WHY LEARN PYTHON
      • JAVA VS PYTHON
      • WHAT IS PYTHON
    • PRIMAVERA
      • LIFECYCLE OF PRIMAVERA
      • EPPM VS PPM
      • PROJECT MANAGEMENT STEPS
    • PMP
      • PMP CERTIFICATION
    • AWS
      • TOP 5 AWS SERVICES
      • AWS VS OPENSTACK
      • AMAZON VS AZURE VS GOOGLE CLOUD
      • WHY DEVELOPERS SHOULD LEARN AWS
    • ANGULAR
      • ANGULAR INTERVIEW QUESTIONS
      • ANGULAR VS REACT VS VUE
    • REACT
      • TOP REASON TO LEARN REACT
    • BLUE PRISM
      • BLUE PRISM VS UI PATH
      • WHAT IS RPA
    • UI PATH
      • RPA CERTIFICATION
    • CLOUD COMPUTING
      • BEST CLOUD COMPUTING SERVICES
    • DEVOPS
      • DEVOPS OVERVIEW
    • NODE JS
      • NODE JS CERTIFICATION
    • HADOOP
      • HADOOP CERTIFICATION
    • AZURE
      • AZURE CERTIFICATION
    • SOFTWARE TESTING
      • HOW TO BECOME A SOFTWARE TESTER
      • MOVE FROM MANUAL TO AUTOMATION TESTING
      • HOW MUCH IS JAVA REQUIRED FOR SELENIUM TESTING
  • Contact Us

ORACLE Java Interview Questions

  • Home
  • ORACLE Java Interview Questions

Oracle – Java Interview Questions

Here is the list Java Interview Questions which are recently asked in Oracle company. These questions are included for both Freshers and Experienced professionals.


1. Can you explain the thread lifecycle in Java?

The life cycle of the thread in java is controlled by Java virtual machine. The java thread states are as follows:
  • New
  • Runnable
  • Running
  • Non-Runnable (Blocked)
  • Terminated
NEW is a newly created thread that has not yet started the execution. RUNNABLE is either running or ready for execution but it's waiting for resource allocation. BLOCKED is waiting to acquire a monitor lock to enter or re-enter a synchronized block/method.The thread is in running state if the thread scheduler has selected it.A thread is in terminated or dead state when its run() method exits.

2. What do you know about Interface in Java?

The interface in Java is a mechanism to achieve abstraction. There can be only abstract methods in the Java interface, not method body. It is used to achieve abstraction and multiple inheritance.

3. How do you make a thread stop in Java?

Modern ways to suspend/stop a thread are by using a boolean flag and Thread. interrupt () method. We can define a boolean variable which is used for stopping/killing threads say 'exit' using a boolean flag. Whenever we want to stop a thread, the 'exit' variable will be set to true.

4. What purpose do the Volatile variable serve in Java?

Volatile keyword is used to modify the value of a variable by different threads and used to make classes thread safe. It means that multiple threads can use a method and instance of the classes at the same time without any problem.

5. Please compare Serialization with Deserialization in Java.

Serialization is a mechanism of converting the state of an object into a byte stream. Deserialization is the reverse process where the byte stream is used to recreate the actual Java object in memory. So, the object serialized on one platform can be deserialized on a different platform.

6. What do you understand by OutOfMemoryError in Java?

OutOfMemoryError is a runtime error which occurs when the Java Virtual Machine is unable to allocate an object due to insufficient space in the Java heap. The Java Garbage Collector cannot free up the space required for a new object.

7. Is Java platform independent?

Java is platform-independent because it does not depend on any type of platform.Programs are compiled into byte code and that byte code is platform-independent. Hence, Java is platform-independent language.

8. What all memory areas are allocated by JVM?

Memory allocation in java refers to the process where the computer programs and services are allocated dedicated to virtual memory spaces. The memory in the JVM divided into 5 different parts:
  • Class Area.
  • Heap.
  • Stack.
  • Program Counter Register.
  • Native Method Stack.

9. Java vs. C ++?

C++ is derived from C and has the features of both procedural and object-oriented programming languages. C++ was designed for application and System development.

Java is built upon a virtual machine which is very secure and highly portable in nature. It is grouped with a comprehensive library to provide support for the abstraction of the existing platform.

10. Explain public static void main(String args[])

public static void main(String[] args) Java main method is the entry point of any java program. Its syntax is always public static void main(String[] args) . You can only change the name of String array argument, for example you can change args to myStringArgs.

Free PDF : Get our updated Java Course Content pdf

11. What is javac ?

The javac command reads source files that contain module, package and type declarations written in the Java programming language, and compiles them into class files that run on the Java Virtual Machine. The javac command can also process annotations in Java source files and classes.

12. What is class?

Java provides a class with name Class in java. lang package. Instances of the class Class represent classes and interfaces in a running Java application. The primitive Java types (boolean, byte, char, short, int, long, float, and double), and the keyword void are also represented as Class objects.

13. What is the base class of all classes?

lang. Object class is the root or superclass of the class hierarchy, which is present in java.

14. What is a wrapper class in Java?

A Wrapper class in Java is the type of class that provides a mechanism to convert the primitive data types into the objects and vice-versa. When a wrapper class is created, there is a creation of a new field in which we store the primitive data types.

15. Different Data types in Java.

  • Primitive data types - includes byte , short , int , long , float , double , boolean and char.
  • Non-primitive data types - such as String, Arrays and Classes (you will learn more about these in a later chapter)

16. What is Type casting in Java?

Type Casting is a feature in Java using which the form or type of a variable or object is cast into some other kind or Object, and the process of conversion from one type to another is called Type Casting.

17. What is an Array?

An array is a group of like-typed variables that are referred to by a common name. Arrays in Java work differently than they do in C/C++.Each item of an array is an element. All the elements in an array must be of the same type.

18. Does Java support Multiple Inheritance?

Java does not support multiple inheritance using classes. “A class can extend only one class but it can implement multiple interfaces.” For example, below inheritance using multiple classes is wrong as two classes cannot be extended or inherited.

19. What is Polymorphism and what are the types of it?

The word "poly" means many and "morphs" means forms. So polymorphism means many forms.Polymorphism is a feature of OOPs that allows the object to behave differently in different conditions There are two types of polymorphism in Java: compile-time polymorphism and runtime polymorphism.

20. What is method overriding in Java?

In any object-oriented programming language, Overriding is a feature that allows a subclass or child class to provide a specific implementation of a method that is already provided by one of its super-classes or parent classes.

Get Answer for all the above questions and place in your dream company

Wants to Become an Expert
in Java?

Know More

TOP MNC's JAVA INTERVIEW QUESTIONS & ANSWERS

Here we listed all Java Interview Questions and Answers which are asked in Top MNCs. Periodically we update this page with recently asked Questions, please do visit our page often and be updated in Java.

Accenture
PayPal
Fidelity
Wipro
Barclays
Capgemini
ZOHO
Infosys
Infosys
Virtusa
Oracle
Cognizant
Indium
ThoughtWork
Verizon
Citi

Related Tags

Python Training in Chennai | Azure Certification Training in Chennai | Dot Net Training in Chennai | Selenium Course in Chennai | DevOps Training in Chennai | Data Science Online Training | AWS Certification Training in Chennai | Angular Course in Chennai | React JS Training in Chennai | GCP Training in Chennai | Java Online Training with Placements

other top mnc java Interview Q&A

  • Accenture
  • capgemini
  • cognizant
  • paypal
  • zoho
  • indium
  • Fidelity
  • infosys
  • thoughtwork
  • wipro
  • virtusa
  • verizon
  • barclays
  • oracle
  • citi

INDIA LOCATIONS

New #30,Old #16A,
Rajalakshmi Nagar, Velachery,
Chennai - 600 042.
Mobile: +91 9884412301

Plot No.8, Vinayaga Avenue,
Rajiv Gandhi Salai, Okkiampettai(OMR),
Chennai – 600 097.
Mobile: +91 9600112302

Refund/Cancellation Policy

INTERNATIONAL LOCATIONS

USA
Houchin Drive, Franklin, TN -37064
Tennessee
Email: info@credosystemz.com
Web: www.credosystemz.com
Chat With Us

UAE
Sima Electronic Building,
LLH Opposite,
Electra Street – Abu Dhabi
Email: info@credosystemz.com
Web: www.credosystemz.com
Chat With Us

TRENDING COURSES

  • Python Training in Chennai
  • Data Science Training in Chennai
  • AWS Training in Chennai
  • Big Data Hadoop Training in Chennai
  • Machine Learning Training in Chennai
  • Selenium Training in Chennai
  • Angular Training in Chennai
  • Oracle Primavera P6 Online Training
  • Mean Stack Training in Chennai
  • DevOps Training in Chennai
  • Microsoft Azure Training in Chennai
  • GCP Training in Chennai

Copyright 2022 CREDO SYSTEMZ | All Rights Reserved.