Practice
Resources
Contests
Online IDE
New
Free Mock
Scaler Events New
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
Scaler
Explore Offerings by SCALER
Events
Checkout Scaler Academy Events
New

Advance Java MCQ

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

Events | Powered By
1. 

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

2. 

Among the following which contains date information.

3. 

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

4. 

The total JDBC product components in Java software provides is ___________

5. 

Total JDBC drivers available is _____________

6. 

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

7. 

Which driver is known as the thin driver in JDBC?

8. 

TCP, FTP, SMTP, Telnet are examples of?

9. 

Identify the class used for connection-less socket programming.

10. 

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

11. 

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

12. 

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

13. 

What are the major components of the JDBC?

14. 

Which is responsible for getting a connection to the database?

15. 

In which file database table configuration is stored?

16. 

How constructor can be used for a servlet?

17. 

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

18. 

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

19. 

Choose the instance variable of class httpd among the following.

20. 

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

21. 

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

22. 

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

23. 

Among the following which contains date information.

24. 

Among the following which contains date information.

25. 

 Total ways to perform exception handling in JSP is ________

26. 

Which of the following tags does the JSP page contain?

27. 

Full form of  JDBC is __________

28. 

Which of the following requires fewer resources?

29. 

What decides the priority of the thread?

30. 

Among the following which is a type of multitasking?

31. 

What is the RMI server responsible for?

32. 

RMI stands for __________

33. 

What is built on top of socket programming?

34. 

Identify among the following which follows the connectionless service.

35. 

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

36. 

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

37. 

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

38. 

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

39. 

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

40. 

Identify the HTTP request method which is non-idempotent.

41. 

Which of the following examples of application servers?

42. 

The total number of techniques used in session tracking is ________

43. 

Identify the Microsoft solution for providing dynamic web content.

44. 

What is the difference between servlet and JSP?

45. 

Among the following which is not a directive?

46. 

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

47. 

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

48. 

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

49. 

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

50. 

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

Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler
Sat transparent 640a34d454880bf68e3bfdf33f2389f2214043f59ad18b4c7f7b114e834fb257.svg

Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Personalised feedback report with solutions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Real life Interview Questions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Identify exact topics to improve

Your feedback is important to help us improve.
Free Mock Assessment
Fill up the details for personalised experience.
All fields are mandatory
Current Employer *
Enter company name *
Graduation Year *
Select an option *
1992
1993
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
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
1992
1993
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
*Enter the expected year of graduation if you're student
Current Employer *
Company Name *
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