Java Programming | MCQs

    Q1: Who invented Java programming?

    جاوا پروگرامنگ کس نے ایجاد کی؟
    • A. Linus Torvalds
    • B. Bajarnae
    • C. James Gosling
    • D. Deniss Ritche

    Q2: Java applets are developed in ______?

    جاوا ایپلٹ ______ میں تیار کیے گئے ہیں؟
    • A. C++ language
    • B. C language
    • C. Java language
    • D. None of these

    Q3: The basic difference between JavaScript and Java is?

    جاوا اسکرپٹ اور جاوا کے درمیان بنیادی فرق کیا ہے؟
    • A. There is no difference
    • B. Functions are considered as fields
    • C. Functions are values and there is no hard distinction between methods and fields
    • D. Variables are specific

    Q4: Which of the following statements is true about an interface in Java?

    جاوا میں انٹرفیس کے بارے میں درج ذیل میں سے کون سا بیان درست ہے؟
    • A. It can have constructors
    • B. It can contain instance variables
    • C. It can have abstract methods and default methods
    • D. None of these
✅ Correct: 0 | ❌ Wrong: 0 | 📊 Total Attempted: 0