Basic Core Java Interview Questions || Top Core Java Interview Questions and Answers || PART - 3
This video Contain BASIC Core Java Interview Questions PART - 3
Q1. What are the features of Java programming language?
Ans:-
- Simple:
Java is easy to learn. The syntax of Java is easier alike C++ to write the program in it.
- Object-Oriented:
Java follows the object-oriented programming, which allows us to maintain our code as the combination of different type of objects.
- Portable:
Java supports read-once-write-anywhere approach. You can run the Java program on every machine.
- Platform Independent:
Java is a platform independent programming language. It is different from other programming languages like C and C++ As C and C++ requires a platform to be executed. Java has it own platform on which its code is executed.
- Secured:
Java programming language is secured because it doesn't use explicit pointers. It also provides the concept of ByteCode and Exception handling which makes it more secure then other languages.
- Robust:
Java is a strong programming language as it uses strong memory management. It follows automatic memory management, it automatically allocates memory to new created object and automatically realises the memory when object is not in use or object is destroyed. make it more robust.
- Architecture Neutral:
Java is architectural neutral as it is not dependent on the architecture. As size of the data types of java doest vary inrespect to the architecture (32 or 64 bit).
- Interpreted:
Java language uses the Just-in-time (JIT) interpreter and also the compiler for the program execution.
- High Performance:
Java is much faster than other programming languages because Java bytecode is "close" to native code. Although java is little slower than c++ language.
- Multithreaded:
Java programs can deal with many tasks at once by defining multiple threads. The main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area.
- Distributed:
Java language is distributed because it facilitates users to create distributed applications in Java. RMI and EJB are used for creating distributed applications. This feature of Java makes us able to access files by calling the methods from any machine on the internet.
- Dynamic:
Java language is a dynamic language. It supports dynamic loading of classes. It means classes are loaded when they are needed or on demand. It also supports functions from its native languages, i.e., C and C++.
Q2. What are the difference between Java and C++?
Ans:- Refer the lecture / this video for this answer.
Q3. What is Platform and Why Java is platform- independent?
Ans:
A platform is the enviroment where a software is executed.
Platform is of two types
- Hardware-based platform
- Software-based platform
Java uses the software-based plateform.
When we are writting any java based program, that must be saved with the dot java (.java) extension.
After sucessfully compiling that java program it generates .class file or byte code. When we are trying to run the program that byte code will get converted to native code, that native code will internally communicate with windows operating system.
There is no physical extension of native code in java. As byte code is platform indepentent we can use this byte code on any other platform, only JDK(java developer kit) must be available on that machine. So , Java is called as platform-independent.
Q4. State whether Java program are platform independent?
Ans:True
Q5. State whether C program are platform independent?
Ans: False
Q6. State whether C program are platform dependent?
Ans:True
Q7. State whether JDK is platform dependent?
Ans:True
Q8. State whether Byte code is platform independent?
Ans: True
#java #corejava #javainterviewquestion
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Basic Core Java Interview Questions || Top Core Java Interview Questions and Answers || PART - 3», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.