Technical interview questions and answers are essential for J2SE Interviews because core Java concepts form the foundation of all Java-based development. Companies test your knowledge of OOP principles, exceptions, packages, JVM architecture, threading, collections, and file handling. These topics commonly appear in placement drives and technical interviews conducted by TCS, Infosys, Wipro, Cognizant, and Capgemini. Understanding J2SE concepts helps freshers and job seekers prepare for both Java developer roles and advanced J2EE/Java EE interviews. This guide features the most commonly asked J2SE interview questions with answers explained in simple language. Preparing these questions will strengthen your Java basics and improve your performance in coding tests and technical rounds.
Java programmers should advance their enterprise skills by studying J2EE frameworks and mastering EJB components for distributed applications
Showing 10 of 237 questions
171. What is privilege ?
A security attribute that does not have the property of uniqueness and which may be shared by many principals. An example of a privilege is a group.
172. What is process ?
A virtual address space containing one or more threads.
173. What is property ?
Characteristics of an object that users can set, such as the color of a window.
174. What is profiles ?
A profile is a collection of Java APIs that complements one or more Java 2 Platform Editions by adding domain-specific capabilities. Profiles may also include other defined profiles. A profile implementation requires a Java 2 Platform Edition to create a complete development and deployment environment in a targeted vertical market. Each profile is subject to an associated set of compatibility requirements. Profiles may be usable on one or more editions.
175. What is protected ?
A Java keyword used in a method or variable declaration. It signifies that the method or variable can only be accessed by elements residing in its class, subclasses, or classes in the same package.
176. What is public ?
A Java keyword used in a method or variable declaration. It signifies that the method or variable can be accessed by elements residing in other classes.
177. What is raster ?
A two-dimensional rectangular grid of pixels.
178. What is realm ?
See security policy domain. Also, a string, passed as part of an HTTP request during basic authentication, that defines a protection space. The protected resources on a server can be partitioned into a set of protection spaces, each with its own authentication scheme and/or authorization database
179. What is realm ?
A variable data type in which the variable's value is an address.
180. What is return ?
A Java keyword used to finish the execution of a method. It can be followed by a value required by the method definition.