The document discusses important questions and answers about Java programming including what Java programming language is, its history, primitive data types in Java, classes and objects in Java, inheritance in Java, abstraction in Java, encapsulation in Java, polymorphism in Java, exception handling in Java, and threading in Java.
The document discusses important questions and answers about Java programming including what Java programming language is, its history, primitive data types in Java, classes and objects in Java, inheritance in Java, abstraction in Java, encapsulation in Java, polymorphism in Java, exception handling in Java, and threading in Java.
Original Description:
Java .
Original Title
Java programming ke important questions and answers
The document discusses important questions and answers about Java programming including what Java programming language is, its history, primitive data types in Java, classes and objects in Java, inheritance in Java, abstraction in Java, encapsulation in Java, polymorphism in Java, exception handling in Java, and threading in Java.
The document discusses important questions and answers about Java programming including what Java programming language is, its history, primitive data types in Java, classes and objects in Java, inheritance in Java, abstraction in Java, encapsulation in Java, polymorphism in Java, exception handling in Java, and threading in Java.
Java programming ke important questions and answers:
Java programming language kya hai?
● Java programming language ek high-level object-oriented programming language hai jo platform independent hai, yani ki ye kisi bhi operating system par chalta hai. Java programming language ki history kya hai? ● Java programming language James Gosling, Mike Sheridan, aur Patrick Naughton ke dwara Sun Microsystems me develop ki gayi thi. Iske baad, Oracle Corporation ne Sun Microsystems ko acquire kar liya. Java me primitive data types kitne hai? ● Java me 8 primitive data types hote hai - byte, short, int, long, float, double, boolean, aur char. Java me class aur object kya hai? ● Java me class ek blueprint hoti hai jo object ko create karne ke liye use hoti hai. Object ek instance hota hai jo class ke properties aur methods ko hold karta hai. Java me inheritance kya hai? ● Inheritance Java me ek feature hai jisme ek class dusri class se properties aur methods inherit karta hai. Isse code reuse kiya ja sakta hai. Java me abstraction kya hai? ● Abstraction Java me ek concept hai jisme class ke internal details ko hide kiya jaata hai aur sirf public interface accessible hoti hai. Isse code maintainability aur reusability badhti hai. Java me encapsulation kya hai? ● Encapsulation Java me ek concept hai jisme data aur uske associated methods ko ek unit me rakha jaata hai aur uske access ko control kiya jaata hai. Isse data security aur code maintainability badhti hai. Java me polymorphism kya hai? ● Polymorphism Java me ek concept hai jisme ek object ke multiple forms ho sakte hai. Isse flexibility aur code readability badhti hai. Java me exception handling kya hai? ● Exception handling Java me ek concept hai jisme program me errors aur exceptions ko handle kiya jaata hai. Isse program stability aur reliability badhti hai. Java me threading kya hai? ● Threading Java me ek feature hai jisme multiple threads ke dwara multiple tasks parallelly execute kiye ja sakte hai. Isse program performance aur responsiveness badhti hai.