Java MCQ Questions with answers SET-1

Hey Guys welcome to CES Study247

This page provide you Digital Electronics Multiple Choice Question Answer that is very useful for Semester , DRDO, ISRO ,Banking , Railway, Gate and another exam.

Q.1 Who is the Father of JAVA?

  • A) Dennis Ritchie
  • B) James Gosling
  • C) Bjarne Stroustrup
  • D) None of these

Q.2 JAVA is defined as a ________?

  • A) Secure programming language
  • B) Fast programming language
  • C) Powerful programming language
  • D) All of the above

Q.3 What was the name of Java before it was renamed?

  • A) JAVA
  • B) Oak
  • C) SIMULA
  • D) None of these

Q.4 What was Java first called by James Gosling during its initial development?

  • A) Green Talk
  • B) Oak
  • C) SIMULA
  • D) None of these

Q.5 What was the file extension used for the 'Green Talk' project?

  • A) .java
  • B) .gt
  • C) .oak
  • D) None of these

Q.6 In which year was the 'Oak' language officially renamed to 'Java'?

  • A) 1987
  • B) 1994
  • C) 1991
  • D) None of these

Q.7 What is the standard file extension for Java source code files?

  • A) .gt
  • B) .java
  • C) .oak
  • D) None of these

Q.8 In which year was the Java programming language officially developed/released?

  • A) 1972
  • B) 1995
  • C) 1987
  • D) None of these

Q.9 Sun Microsystems released its first public implementation in 1996 as?

  • A) JDK 1.0
  • B) JDK 1.1
  • C) JDK 1.5
  • D) None of these

Q.10 What are considered the four 'pillars' of Object-Oriented Programming in Java?

  • A) Abstraction
  • B) Polymorphism
  • C) Inheritance & Encapsulation
  • D) All of the above

Q.11 Java was originally developed by which company?

  • A) Sun Microsystems
  • B) Oracle
  • C) Microsoft
  • D) None of these

Q.12 Which of the following are distinct 'flavors' or editions of Java?

  • A) J2SE (Standard Edition)
  • B) J2EE (Enterprise Edition)
  • C) J2ME (Micro Edition)
  • D) All of the above

Q.13 Which company owns the Java product currently?

  • A) Sun Microsystems
  • B) Microsoft
  • C) Oracle
  • D) None of these

Q.14 What were the very first versions of Java released for testing?

  • A) JDK 1.0
  • B) JDK 1.5
  • C) JDK Alpha & Beta
  • D) None of these

Q.15 What is the command used to compile a Java program?

  • A) javac filename.java
  • B) java filename.java
  • C) compile filename.java
  • D) None of these

Q.16 What is the command used to execute (run) a compiled Java class?

  • A) javac class_name
  • B) javac class_name.java
  • C) java class_name
  • D) None of these

Q.17 In the context of Java development, what does JDK stand for?

  • A) JAVA Design Kit
  • B) JAVA Developer Kit
  • C) JAVA Development Kit
  • D) None of these

Q.18 In the context of Java, what does JRE (or JRC in some contexts) stand for?

  • A) JAVA Running Environment
  • B) JAVA Runtime Environment
  • C) JAVA Run Execution
  • D) None of these

Q.19 What does the acronym JVM stand for?

  • A) JAVA Virtual Machine
  • B) JAVA Virtual Memory
  • C) JAVA Virtual Moment
  • D) None of these

Q.20 Which of the following is NOT a standard application type for Java?

  • A) Desktop Applications
  • B) Mobile Apps
  • C) Web Applications
  • D) Physical Building construction

Scroll to Top