Java8 Version Features|SteamAPI

Published: 31 March 2024
on channel: UniqueCodingHeros Upcoming...
14
0

#java8 java8 Features
Important Interview Question:-
1.Difference between java6 and java8
2.What is Stream API
3.Sorting of programs.
4:-As strings are immutable so how we can create custom immutable class in java.
Ans:-1.class need to define as final, so that it cannot be extended.2.Declare all field as final.3.Declare all field as private.4.Only provide getter method.5.Parameterized construtor should be initilized.


final class bikash{
//member variable
private final String name;

//constructor
public bikash(String name)
{
this.name=name;

}
// Getter Method

public String getName(){

}
}

5:- what is difference between classNotFoundException and NoClassDefFoundError?

Ans:-ClassNotfoundException- An exception that occurs when you to load a class at run time using class.forName() or load class method and mention class is not found in the class path is called ClassNotFoundException

NoClassDefFoundError-An exception that occurs when a particular class is presnet at compile time but was missing at run time.

Full Playlist:-   • Java interview Question| Recently asked Qu...  


On this page of the site you can watch the video online Java8 Version Features|SteamAPI with a duration of hours minute second in good quality, which was uploaded by the user UniqueCodingHeros Upcoming... 31 March 2024, share the link with friends and acquaintances, this video has already been watched 14 times on youtube and it was liked by 0 viewers. Enjoy your viewing!