Practice
Resources
Contests
Online IDE
New
Free Mock
Events New Scaler
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
logo
Events
Attend free live masterclass hosted by top tech professionals
New
Scaler
Explore Offerings by SCALER
/ Interview Guides / Advance Java MCQ

Advance Java MCQ

Last Updated: Jan 08, 2024
Certificate included
About the Speaker
What will you Learn?
Register Now

Java, originally evolved from the Oak language, was born in early 1996 with its major version as Java 1 or JDK 1.0. Java was initially designed and developed by Sir James Gosling at Sun Microsystems. Java 8 or JDK 8.0 is one of the major releases of the Java programming language in 2014.

Java is divided into two parts

  • Core Java(J3SE)
  • Advanced Java(JEE)

The Core Java consists of all the fundamentals of Java programming language such as data types, functions, loops, threads, etc.

Why is Advanced Java used?

  • Advance java simplifies the complexity of building an n-tier application.
  • JEE application server and containers provide Framework services.

Advantages

  • It provides the concept of client-server architecture.
  • There are many Advanced Java frameworks such as spring Hibernate states that helped secure transaction-based web applications.
  • There are many web application servers such as Apache Tomcat and glassfish
  • it provides various services of API and protocols

AWT

  • AWT stands for abstract window Toolkit.
  • It is a collection of classes and interfaces
  • AWTpackage contains a large number of classes which help to include various graphical components in the Java program
  • it provides a platform Independent and device-independent interface to develop graphic programs that run on all platforms including Windows,  Mac OS, and Unix.

Servlet

Servlets in Java programs that run on the java-enabled web server or application server. They are used to handle the request obtained from the webserver, process the request and produce the response and then send the response back to the server.

Properties of Servlet

  • It works on the server-side
  • It is capable of handling Complex requests obtained from a webserver
  • It came to solve the problem due to common Gateway interface implementation

Types of servlets

  • Generic servlet
  • HTTP servlet

JSP

JSP is used to create web applications but it is an extension to servlet because it provides more functionality than servlet such as expression language, JSTL.

  • A JSP page consists of HTML tags and JSP tags.
  • It is easier to maintain
  • More functionality is available in JSP
  • Fast development

The life cycle of a JSP

  • Translation
  • Compilation
  • Classloading
  • Instance creation
  • Initialization
  • Request processing
  • Destroy

MVC

MVC stands for model view and controller.  It is a design pattern that separates the business logic presentation logic and data.

Advance Java MCQs

1. 

What is the RMI server responsible for?

Create a free personalised study plan Create a FREE custom study plan
Get into your dream companies with expert guidance
Get into your dream companies with expert..
Real-Life Problems
Prep for Target Roles
Custom Plan Duration
Flexible Plans
2. 

Identify the Microsoft solution for providing dynamic web content.

3. 

In which file database table configuration is stored?

4. 

RMI stands for __________

5. 

TCP, FTP, SMTP, Telnet are examples of?

Explore InterviewBit’s Exclusive Live Events
Explore Exclusive Events
By
No More Events to show!
No More Events to show!
No More Events to show!
No More Events to show!
Certificate included
About the Speaker
What will you Learn?
Register Now
6. 

The total JDBC product components in Java software provides is ___________

7. 

The total number of techniques used in session tracking is ________

Start Your Coding Journey With Tracks Start Your Coding Journey With Tracks
Master Data Structures and Algorithms with our Learning Tracks
Master Data Structures and Algorithms
Topic Buckets
Mock Assessments
Reading Material
Earn a Certificate
8. 

Total JDBC drivers available is _____________

9. 

Total TCP/IP ports reserved for specific protocol is._______

10. 

What are the major components of the JDBC?

11. 

What decides the priority of the thread?

12. 

What is built on top of socket programming?

Discover your path to a   Discover your path to a   Successful Tech Career for FREE! Successful Tech Career!
Answer 4 simple questions & get a career plan tailored for you
Answer 4 simple questions & get a career plan tailored for you
Interview Process
CTC & Designation
Projects on the Job
Referral System
Try It Out
2 Lakh+ Roadmaps Created
13. 

What is the difference between servlet and JSP?

14. 

Identify the method which is used to start a  server thread.

15. 

What is the total number of bits in a single IP address?

16. 

What is the total number of ResultSet available with the JDBC 2.0 core API?

17. 

Where can BLOB, CLOB, ARRAY, and REF type columns be updated?

18. 

Which driver is known as the thin driver in JDBC?

19. 

Which is responsible for getting a connection to the database?

20. 

Which of the following examples of application servers?

21. 

Which of the following option leads to the portability and security of Java?

22. 

Which of the following requires fewer resources?

23. 

Which of the following tags does the JSP page contain?

24. 

Which of the following ways is used to communicate from an applet to servlet?

25. 

Which tag is used to execute Java source code in JSP?

26. 

Choose whether true or false:  JDBC is a Java API that is used to connect and execute queries to the database.

27. 

Among the following identify the packages which represent interfaces and classes for servlet API.

28. 

Among the following methods which of the following returns proxy object.

29. 

Among the following options choose the one which shows the advantage of using the JDBC connection pool.

30. 

Among the following protocols are used for splitting and sending packets to an address across a network.

31. 

Among the following which attribute is used to specify the class name of the bean.

32. 

Among the following which contains date information.

33. 

What is the purpose of the finally block in a Java try-catch-finally construct?

34. 

Which of the following access modifiers provides the widest scope of visibility for a class member in Java?

35. 

Among the following which is a type of multitasking?

36. 

Among the following which is not a directive?

37. 

Among the following which method is used to know the host of an URL?

38. 

Choose the instance variable of class httpd among the following.

39. 

 Total ways to perform exception handling in JSP is ________

40. 

Choose whether true or false: The JDBC API is what allows access to a data source from a java middle tier.

41. 

Choose whether true or false:  The ResultsSet.next method is used to move the next row of the ResultSet, making the current row

42. 

Choose whether true or false: The web server is used for loading the init() method of the servlet.

43. 

For resolving Facelet views, which of the following is configured.

44. 

Full form of  JDBC is __________

45. 

How constructor can be used for a servlet?

46. 

Identify among the following which follows the connectionless service.

47. 

Identify the class used for connection-less socket programming.

48. 

Identify the HTTP request method which is non-idempotent.

49. 

Identify the method of the JDBC process among the following options.

50. 

Identify the method which is used to find the URL from the cache of httpd.

Excel at your interview with Masterclasses Know More
Certificate included
What will you Learn?
Free Mock Assessment
Fill up the details for personalised experience.
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
*Enter the expected year of graduation if you're student
Current Employer
Company Name
College you graduated from
College/University Name
Job Title
Job Title
Engineering Leadership
Software Development Engineer (Backend)
Software Development Engineer (Frontend)
Software Development Engineer (Full Stack)
Data Scientist
Android Engineer
iOS Engineer
Devops Engineer
Support Engineer
Research Engineer
Engineering Intern
QA Engineer
Co-founder
SDET
Product Manager
Product Designer
Backend Architect
Program Manager
Release Engineer
Security Leadership
Database Administrator
Data Analyst
Data Engineer
Non Coder
Other
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test