11 November 2020

#CoreJava_08

#CoreJava_08
What were the issues that were fixed with the new Date and Time API of Java 8?
What was wrong with the old date and time?
What is UnaryOperator?
What is Type Inference? Is Type Inference available in older versions like Java 7 and Before 7 or it is available only in Java SE 8?
What is the use of the String::ValueOf expression in Java 8?
What is the use of the peek() method in Java 8?
What is the Supplier Functional Interface?
What is the similarity between Map and Flat map stream operation?
What is the purpose of filter method of stream in java 8?
What is the most common type of Terminal operations?
What is the meaning of functional interfaces in Java 8?
What is the lambda expression in Java and How does a lambda expression relate to a functional interface?
What is the feature of the new Date and Time API in Java 8?
What is the easiest way to print the sum of all of the inumbers present in a list using Java 8?
What is the easiest way to find and remove duplicate elements from a list using Java 8?
What is the easiest way to convert an array into a stream in Java 8?
What is the distinct feature of the Block of Code?
What is the Consumer Functional Interface?
What is the @FunctionalInterface annotation?
What is terminal operation?
What is StringJoiner?
What Is Stream Pipelining in Java 8?
What is statistics collector in Java 8?
What is Spliterator in Java SE 8?
What is skip?
What is Reference to an instance method?
What is Reference to a static method?
What is Reference to a constructor?
What is PremGen? Do we have PermGen in Java 8?
What is Predicate and BiPredicate interface?
What is peek?
What is Optional in Java 8? What is the use of Optional? Advantages of Java 8 Optional?
What is Operator?
What is Nashorn, JavaScript Engine?
What is Multiple Inheritance? How Java 8 supports Multiple Inheritance?
What is MetaSpace? How does it differ from PermGen
What Is map?
What is LocalTime?
What is LocalDateTime APIs?
What is LocalDate?
What is limit?
What Is JJS?
What is Internal Iteration? When do we need to use Internal Iteration?
What is intermediate operation? What are the most commonly used Intermediate operations?
What is Function? BiFunction, UnaryOperator, BinaryOperator?
What is flatmap?
What is Filter operation?
What is External Iteration? When do we need to use External Iteration?
What is distinct?
What is Diamond Problem in interfaces due to default methods? How Java 8 Solves this problem?
What is Diamond Problem in Inheritance? How does Java 8 solve this problem?
What is default method?
What is Consumer and BIConsumer interface?
What is ChronoUnits in Java 8?
What is BinaryOperator?
What is BiFuction?
What is a type interface?
What Is a Stream? How Does It Differ from a Collection
What is a stream, and how does it differ from a collection
What is a Stream API? Why do we require the Stream API?
What is a Static Method? Why do we need Static methods in Java 8 Interfaces?
What is a Functional Interface? What is SAM Interface?
What is :: (double colon) operator-Method References in Java 8?
What does the String::ValueOf expression mean?
What does the peek() method does? When should you use it?
What does the flatmap() function do? Why do we need it?
What do you mean by chromounits in java8?
What are type annotations? Name some common type annotations.
What are the various categories of pre-defined function interfaces?
What are the types of Method References available in java 8
What are the types and common ways to use lambda expressions?
What are the sources of data objects a Stream can process?
What are the similarities between map and flatMap stream operations in Java 8?
What are the main components of a Stream?
What are the important packages for the new Data and Time API?
What are the guidelines that are needed to be followed in Functional Interface?
What are the defining rules of a functional interface?
What are the core API classes for date and time in Java 8?
What are some standard Java pre-defined functional interfaces?
What are some of the examples of terminal operations in Java 8?
What are repeating annotations?
What are functional or SAM interfaces?
What are different ways to create Optional
What are default methods in Java 8?
What are collectors in Java 8?
Why was a new version of Java needed in the first place?
Why lambda expression is called a poly expression?
Why do we need new Date and Time API in Java SE 8?Explain how Java SE 8 Data and Time API solves issues of Old Java Date API?
Why do we need change to Java again?
Which class implements the encoder used for encoding byte data in Java 8?
How will you get current date and time using Java 8 Date and TIme API?
How to remove the duplicate elements from the list.
How to join the all employee names with ?,? using java 8?
How to group by employee name from the list?
How to filter all the employee whose age is greater than 20 and print the employee names using java 8
How to count number of employees with age 18?
How is the Parameter List of Lambda Expression different from the Lambda Arrow Operator
How is a Base64 encoder that encodes URLs created in Java 8?
How is a Base64 decoder created in Java 8?
How do we find maximum age of employee?
How do sort all the employee on the basis of age?
How can you print the date of the next occurring next weekdays using Java 8?
How are Collections different from Stream
When do we go for Java 8 Stream API? Why do we need to use Java 8 Stream API in our projects?
Difference - Map and flatMap Stream Operation
Difference - Limit and Skip?
Difference - findFirst() and findAny()
Difference - Collection API and Stream API
Difference - Iterator and Spliterator
Difference - Predicate and Function
Difference - PermGenSpace and MetaSpace
Difference - Map and FlatMap stream operation
Difference - OLD Java Date API vs Java 8's Date vs Time API
Difference - Intermediate Operations and Terminal Operations
Difference - Functional Programming and Object-Oriented Programming
Difference - findFirst() and findAny()
Difference - Collection API and Stream API
Difference - Internal iteration and External iteration
What is Stream in Java?
What is a functional interface
What is Lambda
What mechanism is used in the implementation of parallel streams
What is a link to the method and how it is realized
What innovations appeared in Java 8 and JDK 8
What variables have access to lambda-expression
What types of links to methods do you know
What is Stringjoiner
What is a Static interface method
What are the ways to create stream
What is the difference between Collection and Stream
What is the Collect () method in straps for
What final methods of working with streams do you know
What intermediate methods of working with streams do you know
What additional methods for working with associative arrays (Maps) appeared in Java 8
What is LocalDetetime
What is ZoneDDATETEME
What is NASHORN
What is JJS
What class appeared in Java 8 for coding/decoding data
Explain the expression system.out :: println
Why are functional interfaces of the type _to_FUNCTION
Why are the MAP () and Maptoint (), MaptodOble (), Maptolong () are intended in streams.
Why in straps the LIMIT () method is intended
Why is the Sorted () method intended in streams
Why are the Flatmap (), Flatmaptoint (), FlatmaptodOble (), Flatmaptolong () methods for straps are intended for streams.
Why are the functional interfaces of Unaryoprator, Doubleunaryoprator, IntunaryOperator, Longunaryoprator
How to sort the list of lines using lambda expression
How to call the Default interface method in the class implementing this interface
How to call a static interface method
Java8
  • Lambda Expressions
  • Functional Interfaces
  • Streams API
  • Optional Class
  • Default and Static Methods in Interfaces
  • Method References
  • New Date and Time API
  • Nashorn JavaScript Engine
  • Parallel Arrays Sorting
  • Type Annotations
Java8
  • Base64 Encoding and Decoding
  • Concurrency Enhancements
  • JavaFX Enhancements
  • Collectors and Collectors API
  • StringJoiner Class
  • Improved Type Inference
  • CompletableFuture and Asynchronous Programming
  • Enhanced JDBC
  • StampedLock
  • Accumulator Classes for Concurrent Programming
Java8
  • Concurrent Adders
  • PermGen Space Removal (Metaspace)
  • Repeating Annotations
  • Atomic Classes Enhancements
  • Unsigned Integer Arithmetic
  • Improvements in File I/O (NIO.2)
  • JVM Performance Optimizations
  • Security Enhancements
  • Compiler Improvements
Java8
  • Java Mission Control (JMC)
  • Fork/Join Pool Enhancements
  • Class-Path Wildcards
  • Java Packager Tool
  • Compact Profiles
  • JSR 308: Type Annotations
  • JSR 335: Lambda Expressions for the Java Programming Language
  • JSR 310: New Date and Time API
  • JSR 337: Java SE 8 Release Contents
Java8
  • Method Parameter Reflection
  • New JDK Command Line Tools
  • DocTree API for Javadoc
  • Scripting with Nashorn
  • Security Updates: TLS SNI, AEAD Algorithms
  • Automatic Resource Management (ARM) Blocks Enhancements
  • Removal of the Permanent Generation (PermGen)
  • Enhanced Locale Data and Support
Java8
  • Unicode 6.2 Support
  • Improved Javadoc
  • WeakHashMap Enhancements
  • Improved DocLint Tool
  • Parallel Processing with Fork/Join Framework
  • HotSpot JVM Enhancements
  • Improved Garbage Collection (GC) Algorithms
  • JavaFX 8 Integration
  • JDBC 4.2 Specification Updates
  • Improvements in Internationalization
Java8
  • BiFunction and Other Functional Interfaces
  • Reduction Operations on Streams
  • Java Cryptography Architecture (JCA) Updates
  • Advanced Management Features with JMX
  • Improved JavaDocs with Search Capability
  • Pluggable Annotation Processing API Updates
  • Unicode 6.3 Support
  • Enhanced Type Checking with Generics
  • ThreadLocalRandom Enhancements
Java8
  • Improved Class Loading Mechanism
  • JVM Compiler Interface (JVMCI) Updates
  • Advanced Profiling and Diagnostic Tools
  • Platform Logging API and Service
  • Java Flight Recorder Enhancements
  • Method Handles and Dynamic Method Invocation
  • Default Charset Updates
  • Improved Support for Multicore Processors
  • Enhanced Support for Concurrent Data Structures
Java8
  • Thread-Local Variables with Initial Values
  • Enhanced Exception Handling with try-with-resources
  • Compiler Enhancements for Loop Optimizations
  • Enhanced Deque and BlockingQueue Interfaces
  • New Charset Implementations
  • Refactoring of Core Libraries
  • HashMap Performance Improvements
  • ConcurrentHashMap Performance Improvements
  • Enhanced Regular Expression Support
Java8
  • Secure Random Number Generation Updates
  • New Collections API Methods
  • VarHandles for Atomic Operations
  • Improved Reflection API
  • Support for High-DPI Displays
  • Modular Source Code Layout in JDK
  • Optimized Bulk Data Operations for Arrays
  • Enhanced Annotations for Better Tool Support
  • Improved Class-Loading Architecture
Java8
  • Integration with IDEs and Build Tools
  • Efficient Access to Enclosing Instance
  • JAR File Optimization
  • Optimized Handling of Large Data Sets
  • Improved JVM Diagnostics
  • String Deduplication in G1 Garbage Collector
  • Support for Optional Parameters in Method Signatures
  • Enhanced Secure Coding Guidelines
  • Optimizations for Integer Cache
Java8
  • Better Memory Management in JVM
  • Faster Startup Time for Java Applications
  • Optimized Class Initialization
  • Optimized Use of Native Libraries
  • JIT Compiler Enhancements
  • Enhanced Support for Annotations in Reflection
  • Optimized Lazy Initialization
  • Customizable GC Settings
  • Refinements in Numeric Conversions
CoreJava_08
Question Option A Option B Option C Option D
Total constructor string class have? 3 7 13 20
Identify the return type of a method that does not return any value. int double void None of these
Output of Math.floor(3.6)? 3 3.0 4 4.0
Identify the modifier which cannot be used for constructor. public protected private static
Can we write a program without a main method in Java? Yes No - -
Can the main() method be overloaded in Java? Yes No - -
Which keyword in java is used for exception handling? exep excepHand throw All of these
Which class in Java is used to take input from the user? Scanner Input Applier None of these
Is string mutable in Java? Yes No - -
Which of these is a type of variable in Java? Instance Variable Local Variable Static Variable All of these
Which of the following can be declared as final in java? Class Method Variable All of these
Finally block is attached to? Try-catch block Class block Method block All of these
Object in java are Classes References Iterators None of these
How can we access methods for file handling in java? Java.files Java.io Java.io.File Java.FileHandling
To which of the following does the class string belong to. java.lang java.string java.utils none of these
Which class can be used Instead of System.getCurrentTimeMillis() to get a date and time in Java 8 Clock Date Time Timer
Lambdas introduced in Java 8 allow us to treat Data as code Code as data None of these All
The newly introduced Streams API is available in which package java.io.streams java.io.stream java.util.streams java.util.stream
Lambda expressions are based on Procedural programming Functional programming Data programming All
How many abstract methods are there in the functional interface? 1 5 10 10+
In Java 8 Interfaces, methods can be default abstract all none
The Java 8 API with a sequence of elements which of these supports sequential and parallel aggregate operations Hadoop Streams SequenceProgramming Big-data
Stream operations in java 8 can be divided into Terminal types Intermediate types All None
Which package contains Date/Time (JSR 310) API in Java 8 java.time java.util.time java.timedate java.util.calendar
Nashorn the new JavaScript engine is an implementation of javax.engine.Engine javax.script.Engine javax.javaScript.Engine javax.script.ScriptEngine
Which is new command line tool for the Nashhorn JavaScript engine in java 8 jcs jfs jjs jss
Which of these should be used to show package-level and class-level dependencies of Class files in Java 8 dep ideps jdep jdeps
Predicate is in which package in Java 8 java.util.predicate java.util.object java.util.objects java.util.predict
Which of these represents a process that accepts one argument and produces a result in Java 8 Function Process Method Java Functions
In java 8 Function is Class Interface Lambda Expression Object
PermGen space has been replaced with which of these in Java 8 PermSpace PermSpaceGen Metaspace MetaGenSpace
What can help us in avoiding NullPointeExceptions and null checks in java 8 Optional Required NotNull NotRequired
In java 8, R apply(T t) is a method of Function Process Predicate None
What is Predicate in Java 8 method class Interface Framework
How sorting speed has been improved significantly on multi-core machines by using Arrays.parallelSort Arrays.sort Collection.parallelSort Arrays.sortParallelly
Which is aggregate operation in Java 8 filter map limit All
Example of functional interfaces in Java 8 java.util.concurrent.Callable java.lang.Runnable All None
Which method can be used to check null on an Optional variable in Java 8 isPresent() isNullable() isPresentable() isNotNull
We need to override which Predicate method in Java 8 predict(T t) predictable(T t) testable(T t) test(T t)

No comments:

Post a Comment

Most views on this month