Languages-Java [3i Infotech Placement]: Sample Questions 21 - 22 of 141

Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.

Question 21

Edit

Write in Short

Short Answer▾

Which can՚t be passed to subroutine.

Explanation

  • Pre-processor directive can՚t pass to subroutine.
  • A subroutine is a sequence of program instructions the perform a specific task, packaged as a unit.
  • This unit can then use in programs that particular task should performed.
  • Defined within programs, or separately in libraries that can used multiple program.
  • Compiled in a compiler, source code is processed by a program called preprocessor. This process is called preprocessing.
  • Commands used in pre-processor are called preprocessor directives and they begin with “#” symbol.

Question 22

Edit

Describe in Detail

Essay▾

Tell some latest versions in JAVA related areas.

Explanation

  • Java is a high-level programming language originally developed by sun microsystems and released in 1995.
  • It is a general-purpose concurrent, class-based, object-oriented, computer programming language specifically designed to reduce dependencies.
  • Machine independent architecture allows “write once, run anywhere” .
  • Java 8 was released on 18 march 2014.
  • Code names were dropped with java 8.

New Features in Java SE 8

  • Lambda expressions.
  • Pipelines and streams.
  • Date and Time API
  • Default Methods.
  • Type annotations.
  • Nashhorn javascript Engine.
  • Concurrent Accumulators.
  • Parallel operations.
  • PermGen Error removed
  • TLS SNI

Developed by: