What will be the output of the following Java program?
1 class variable_scope
2 { 3 public static void main(String args[]) 4 { 5 int x; 6 x = 5;
1 class variable_scope
2 { 3 public static void main(String args[]) 4 { 5 int x; 6 x = 5;
Anonymous Quiz
39%
Complilation error
30%
Runtime error
20%
5 6 5 6
10%
5 6 5
. What will be the error in the following Java code?
byte b = 50;
b = b * 50;
byte b = 50;
b = b * 50;
Anonymous Quiz
22%
b cannot contain value 50
26%
b cannot contain value 100, limited by its range
16%
No error in this code
36%
* operator has converted b * 50 into int, which can not be converted to byte without casting
π2
Which of the following is a type of polymorphism in Java Programming?
Anonymous Quiz
25%
Multiple polymorphism
37%
Compile time polymorphism
32%
Multilevel polymorphism
7%
Execution time polymorphism
. What will be the output of the following Java program?
1 class leftshift_operator
2 { 3 public static void main(String args[]) 4 { 5 byte x = 64;
1 class leftshift_operator
2 { 3 public static void main(String args[]) 4 { 5 byte x = 64;
Anonymous Quiz
19%
0 256
42%
0 64
18%
256 0
21%
64 0
What will be the output of the following Java code?
1 class box
2 { 3 int width; 4 int height; 5 int length; 6 } 7 class main 8 { 9
1 class box
2 { 3 int width; 4 int height; 5 int length; 6 } 7 class main 8 { 9
Anonymous Quiz
23%
100
32%
400
28%
200
18%
12
π3
What is Truncation in Java?
Anonymous Quiz
22%
Floating-point value assigned to a Floating type
40%
Floating-point value assigned to an integer type
23%
Integer value assigned to floating type
15%
None of the mentioned
π1
What will be the output of the following Java program?
1 class Output
2 { 3 public static void main(String args[]) 4 { 5 int arr[] = {1, 2, 3, 4, 5}; 6
1 class Output
2 { 3 public static void main(String args[]) 4 { 5 int arr[] = {1, 2, 3, 4, 5}; 6
Anonymous Quiz
67%
1 2 3 4 5
23%
1 2 3 4
5%
1 2
5%
1 2 3
What will be the output of the following Java code snippet?
1 class abc
2 { 3 public static void main(String args[]) 4 { 5 if(args.length>0) 6 System.out.println(args.len
1 class abc
2 { 3 public static void main(String args[]) 4 { 5 if(args.length>0) 6 System.out.println(args.len
Anonymous Quiz
47%
The snippet compiles and runs but does not print anything
30%
True
15%
False
9%
None of the mentioned
What is the basic difference between JavaScript and Java?
Anonymous Quiz
20%
Functions are considered as fields
51%
Functions are values, and there is no hard distinction between methods and fields
19%
Variables are specific
10%
There is no difference
πβ¨ Explore Your Future with Our Amazing Courses! β¨π
π Java & Java with DSA Courses
π Python & Python with DSA
π Web Development
π Database & SQL
π€ Data Science & Machine Learning
π οΈ DevOps & Azure
π Your journey to success starts here! π
For free course - https://t.me/addlist/vnAFuK9rY6FjNjM1
π Java & Java with DSA Courses
π CORE JAVA: NareshIT | Kishan Sir
π₯ ADVANCED JAVA: Venkatesh Mansani
π₯οΈ SPRING BOOT: NareshIT | Kishan Sir
βοΈ JAVA DSA: DurgaSoft
β Sigma 5.0 Batch: Apna College
π CORE JAVA: Hari Krishna Sir | Naresh IT
π» JAVA FULL STACK COURSE
π Python & Python with DSA
π Adul Bari Pythonπ΅ C++ & C++ with DSA
π₯οΈ PYTHON FULL STACK: KV Rao 2024
βοΈ PYTHON DSA: DurgaSoft
π KRISH NAIK Python Course
π ineuron python course
π‘ ALPHA DSA C++
π PW C++ DSA
π₯ Love Babbar Supreme Batch
π DSA Abdul Bari
β NARESH IT DSA
π± Durgasoft DSA
π€‘ Ashok IT
π Web Development
π¨ PW Skills Web Developmentο»Ώ
β Delta 5.0 Batch: Apna College
π» DOT Batch: Love Babbar
π Namaste React
π Namaste JavaScript
βοΈ Namaste NodeJs
π Cohort 3.0: Web + DevOps
π§ Full Stack Web Development: Naresh IT & DurgaSoft
π Sanket Singh Full Stack Web Development
π NodeJS: Sanket Singh
π MERN Stack: Anuj Bhaiya
π₯οΈ PHP: Ram Sir
π¨ Frontend Development: IIT Madras
π Almabetter Full Stack Web Development Course
β‘ ASHOK IT Node JS
β UI Full Stack: Sudhakar Sharma | Naresh IT
π₯ Sherians Frontend Course
π Database & SQL
π MongoDB: Durga Sir
β Namaste SQL: Akshay Saini
π₯οΈ SQL: DurgaSoft & Naresh IT
π§ ORACLE
π Power BI Course
π€ Data Science & Machine Learning
π PW Skills Data Science Course
π iNeuron Complete Data Science
π Data Science Master 2.0
π Data Science: IIT Madras
βοΈ MLOps Course: Naresh IT
π οΈ DevOps & Azure
β‘ Full DevOps Course: Tech Nanaπ» Special Courses
β Hey DevOps 5.0
π§ Ashok IT DevOps
π MS Azure DevOps Course
π Azure Data Engineering: Gareth | Naresh IT
βοΈ Azure Cloud Mastery
π DevOps with AWS
β¨ Ineuron All Course
βοΈ Google Cloud Platform: Mr. Saidul
π§ Git for DevOps: DurgaSoft
π ASP.NET: Bangar Raju | Naresh ITπ« Plus, we have:
π GATE CSE Prep: PW 1500
π± App Development: Harnoor Singh
π± Android Using Kotlin: DurgaSoft
βοΈ Selenium: Naresh IT
π€ Applied AI Full Course
π» C#: Bangar Raju
π Unix/Linux: Imran 2024 | Naresh IT
βοΈ Salesforce: Adnan | Naresh IT
π‘οΈ Cyber Security: iNeuron
π Digital Marketing: Ramakanth | Naresh IT
- Colt Steele Full Stack Web Development
- StationX Full Stack Python Development
- Arpit Bhayani System Design
- Government Exam All Courses Available
- 1500 TB Mega Link Course Available
- 13 TB Google Drive Course Link
- Code with Mosh All Courses
- Andrew Tate All Courses
- Zero to Mastery All Courses
π€ 100+ More Demanding Courses to Explore!β¨ For more information and discounts π, DM us @Myhurthearts!
π€‘ Order any course and get completed course in 24 hours
π Price Starting at βΉ49!
π Cheapest and best course in history
π 113+ member purchased course and 396 people in DM
π Your journey to success starts here! π
For free course - https://t.me/addlist/vnAFuK9rY6FjNjM1
π2
Alphabetical patterns in Java
π₯°3π2β€1π1
π Java & Java with DSA Courses
if u want to learn core java , adv java , jdbc, spring boot so we have demanded & popular course for more info msg - @Myhurthearts
π CORE JAVA: NareshIT | Kishan Sir
π₯ ADVANCED JAVA: Venkatesh Mansani
π₯ SPRING BOOT: NareshIT | Kishan Sir
βοΈ JAVA DSA: DurgaSoft
βοΈ Sigma 5.0 Batch: Apna College
π CORE JAVA: Hari Krishna Sir | Naresh IT
π» JAVA FULL STACK COURSE
if u want to learn core java , adv java , jdbc, spring boot so we have demanded & popular course for more info msg - @Myhurthearts
β€3π1π₯1π1π1
JAVA PROGRAMMING
https://youtu.be/TBQrLkcK1KQ?si=9fGmOTMDKDx8w8Ht
π100% Ai ka use krk Music Rap Video bnaya π
Plz watch guys and give some response about video π
Plz watch guys and give some response about video π
Java in one notes.pdf
7.9 MB
Java in one notes.pdf
Java Roadmap
|
|-- Fundamentals
| |-- Basics of Programming
| | |-- Introduction to Java
| | |-- Java Development Kit (JDK) and Java Runtime Environment (JRE)
| | |-- Setting Up Development Environment (IDE: IntelliJ IDEA, Eclipse, etc.)
| |
| |-- Syntax and Structure
| | |-- Basic Syntax
| | |-- Variables and Data Types
| | |-- Operators and Expressions
|
|-- Control Structures
| |-- Conditional Statements
| | |-- If-Else Statements
| | |-- Switch Case
| |
| |-- Loops
| | |-- For Loop
| | |-- While Loop
| | |-- Do-While Loop
| |
| |-- Exception Handling
| | |-- Try-Catch Block
| | |-- Finally Block
| | |-- Throw and Throws Keywords
|
|-- Object-Oriented Programming (OOP)
| |-- Basics of OOP
| | |-- Classes and Objects
| | |-- Methods and Constructors
| |
| |-- Inheritance
| | |-- Single and Multiple Inheritance
| | |-- Method Overriding
| | |-- Super Keyword
| |
| |-- Polymorphism
| | |-- Method Overloading
| | |-- Runtime Polymorphism
| | |-- Dynamic Method Dispatch
| |
| |-- Encapsulation
| | |-- Access Modifiers (Public, Private, Protected)
| | |-- Getters and Setters
| | |-- Data Hiding
| |
| |-- Abstraction
| | |-- Abstract Classes
| | |-- Interfaces
|
|-- Advanced Java
| |-- Collections Framework
| | |-- List (ArrayList, LinkedList)
| | |-- Set (HashSet, TreeSet)
| | |-- Map (HashMap, TreeMap)
| | |-- Queue (PriorityQueue, LinkedList)
| |
| |-- Concurrency
| | |-- Multithreading (Creating Threads, Thread Lifecycle)
| | |-- Synchronization
| | |-- Concurrency Utilities (Executors Framework, Callable and Future, Locks and Semaphores)
|
|-- Java Standard Libraries
| |-- I/O Streams
| | |-- File Handling (File Class, Reading and Writing Files)
| | |-- Streams (Byte Streams, Character Streams, Buffered Streams)
| |
| |-- Networking
| | |-- Sockets (TCP and UDP, Socket and ServerSocket Classes)
| | |-- URL and HTTP (URL Class, HttpURLConnection)
| |
| |-- JDBC
| | |-- Database Connectivity (JDBC Drivers, Connection, Statement, and ResultSet)
| | |-- PreparedStatement and CallableStatement
|
|-- Java Frameworks
| |-- Spring Framework
| | |-- Spring Core (Dependency Injection, Inversion of Control)
| | |-- Spring MVC (Model-View-Controller Architecture)
| | |-- Spring Boot (Creating Spring Boot Applications, Starters and Auto-Configuration, Actuator)
| |
| |-- Hibernate
| | |-- ORM Basics (Introduction to ORM, Configuration and Mapping)
| | |-- Advanced Hibernate (Caching, Transactions and Concurrency, Criteria API)
|
|-- Web Development with Java
| |-- Java EE (Jakarta EE)
| | |-- Servlets (Lifecycle, Handling HTTP Requests and Responses, Session Management)
| | |-- JavaServer Pages (JSP) (Syntax, Directives, JSTL and Custom Tags, Expression Language)
| |
| |-- RESTful Web Services
| | |-- JAX-RS (Creating RESTful Services, Annotations and HTTP Methods, Consuming RESTful Services)
|
|-- Build Tools and Dependency Management
| |-- Maven
| | |-- Project Object Model (POM), Dependencies, Repositories, Build Lifecycle and Plugins
| |
| |-- Gradle
| | |-- Build Scripts, Dependency Management, Task Automation
|
|-- Testing in Java
| |-- Unit Testing
| | |-- JUnit (Annotations, Assertions, Test Suites and Runners)
| |
| |-- Mockito (Creating Mocks and Spies, Stubbing and Verification)
| |
| |-- Integration Testing
| | |-- Spring Test (Testing Spring Components, MockMvc and WebTestClient)
|
|-- Deployment and DevOps
| |-- Containers and Microservices
| | |-- Docker (Dockerfile, Image Creation, Container Management)
| | |-- Kubernetes (Pods, Services, Deployments, Managing Java Applications on Kubernetes)
|
|-- Fundamentals
| |-- Basics of Programming
| | |-- Introduction to Java
| | |-- Java Development Kit (JDK) and Java Runtime Environment (JRE)
| | |-- Setting Up Development Environment (IDE: IntelliJ IDEA, Eclipse, etc.)
| |
| |-- Syntax and Structure
| | |-- Basic Syntax
| | |-- Variables and Data Types
| | |-- Operators and Expressions
|
|-- Control Structures
| |-- Conditional Statements
| | |-- If-Else Statements
| | |-- Switch Case
| |
| |-- Loops
| | |-- For Loop
| | |-- While Loop
| | |-- Do-While Loop
| |
| |-- Exception Handling
| | |-- Try-Catch Block
| | |-- Finally Block
| | |-- Throw and Throws Keywords
|
|-- Object-Oriented Programming (OOP)
| |-- Basics of OOP
| | |-- Classes and Objects
| | |-- Methods and Constructors
| |
| |-- Inheritance
| | |-- Single and Multiple Inheritance
| | |-- Method Overriding
| | |-- Super Keyword
| |
| |-- Polymorphism
| | |-- Method Overloading
| | |-- Runtime Polymorphism
| | |-- Dynamic Method Dispatch
| |
| |-- Encapsulation
| | |-- Access Modifiers (Public, Private, Protected)
| | |-- Getters and Setters
| | |-- Data Hiding
| |
| |-- Abstraction
| | |-- Abstract Classes
| | |-- Interfaces
|
|-- Advanced Java
| |-- Collections Framework
| | |-- List (ArrayList, LinkedList)
| | |-- Set (HashSet, TreeSet)
| | |-- Map (HashMap, TreeMap)
| | |-- Queue (PriorityQueue, LinkedList)
| |
| |-- Concurrency
| | |-- Multithreading (Creating Threads, Thread Lifecycle)
| | |-- Synchronization
| | |-- Concurrency Utilities (Executors Framework, Callable and Future, Locks and Semaphores)
|
|-- Java Standard Libraries
| |-- I/O Streams
| | |-- File Handling (File Class, Reading and Writing Files)
| | |-- Streams (Byte Streams, Character Streams, Buffered Streams)
| |
| |-- Networking
| | |-- Sockets (TCP and UDP, Socket and ServerSocket Classes)
| | |-- URL and HTTP (URL Class, HttpURLConnection)
| |
| |-- JDBC
| | |-- Database Connectivity (JDBC Drivers, Connection, Statement, and ResultSet)
| | |-- PreparedStatement and CallableStatement
|
|-- Java Frameworks
| |-- Spring Framework
| | |-- Spring Core (Dependency Injection, Inversion of Control)
| | |-- Spring MVC (Model-View-Controller Architecture)
| | |-- Spring Boot (Creating Spring Boot Applications, Starters and Auto-Configuration, Actuator)
| |
| |-- Hibernate
| | |-- ORM Basics (Introduction to ORM, Configuration and Mapping)
| | |-- Advanced Hibernate (Caching, Transactions and Concurrency, Criteria API)
|
|-- Web Development with Java
| |-- Java EE (Jakarta EE)
| | |-- Servlets (Lifecycle, Handling HTTP Requests and Responses, Session Management)
| | |-- JavaServer Pages (JSP) (Syntax, Directives, JSTL and Custom Tags, Expression Language)
| |
| |-- RESTful Web Services
| | |-- JAX-RS (Creating RESTful Services, Annotations and HTTP Methods, Consuming RESTful Services)
|
|-- Build Tools and Dependency Management
| |-- Maven
| | |-- Project Object Model (POM), Dependencies, Repositories, Build Lifecycle and Plugins
| |
| |-- Gradle
| | |-- Build Scripts, Dependency Management, Task Automation
|
|-- Testing in Java
| |-- Unit Testing
| | |-- JUnit (Annotations, Assertions, Test Suites and Runners)
| |
| |-- Mockito (Creating Mocks and Spies, Stubbing and Verification)
| |
| |-- Integration Testing
| | |-- Spring Test (Testing Spring Components, MockMvc and WebTestClient)
|
|-- Deployment and DevOps
| |-- Containers and Microservices
| | |-- Docker (Dockerfile, Image Creation, Container Management)
| | |-- Kubernetes (Pods, Services, Deployments, Managing Java Applications on Kubernetes)
β€7π2