J2SE Interview Questions & Answers

Showing 10 of 237 questions | Page 15

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

141. What is keyword ?

Java sets aside words as keywords - these words are reserved by the language itself and therefore are not available as names for variables or methods.

142. What is lexical ?

Pertaining to how the characters in source code are translated into tokens that the compiler can understand.

143. What is linker ?

A module that builds an executable, complete program from component machine code modules. The Java linker creates a runnable program from compiled classes. See also compiler, interpreter, runtime system.

144. What is literal ?

The basic representation of any integer, floating point, or character value. For example, 3.0 is a double-precision floating point literal, and "a" is a character literal.

145. What is local variable ?

A data item known within a block, but inaccessible to code outside the block. For example, any variable defined within a method is a local variable and can't be used outside the method.

146. What is long ?

A Java keyword used to define a variable of type long.

147. What is member ?

A field or method of a class. Unless specified otherwise, a member is not static.

148. What is method ?

A function defined in a class. See also instance method, class method. Unless specified otherwise, a method is not static.

149. What is multithreaded ?

Describes a program that is designed to have parts of its code execute concurrently. See also thread.

150. What is native ?

A Java keyword that is used in method declarations to specify that the method is not implemented in the same Java source file, but rather in another language.
Questions and Answers for Competitive Exams Various Entrance Test