Logo Rumman Ansari
  • Home
  • Blog
  • Courses
    Paid Courses
    • X++ Programming Language
    • D365 F&O Technical Using X++ Programming Language
    • D365 F&O MCQ Questions - X++ Programming Language MCQ
    • Java Fundamentals: Building Strong Foundations
    • ICSE Computer Applications Class 10 – Previous Year Question Papers & Solutions
    • GH-300: GitHub Copilot
    • MB-500: Microsoft Dynamics 365: Finance and Operations Apps Developer
    • Authentication
    • Artificial intelligence
    • Complete MySQL Database Mastery Course: Beginner to Advanced with Real-World Projects
    • UGC NET, SET
    • Mastering JavaScript: From Fundamentals to Advanced Concepts
    • The Practical Tech Creator Blueprint
    • IT Career Mastery Blueprint
    Free Courses
    • AB-730: Microsoft Certified: AI Business Professional
    • AJAX
    • AngularJS
    • Arithmetic Aptitude
    • Art of Delegation
    • Automata Theory
    • AZ-400: Designing and Implementing Microsoft DevOps Solutions
    • Azure DevOps for Beginners
    • Bangla to English
    • Biography
    • Biology
    • Bootstrap 4
    • C Programming Language
    • C Programming Language Video Bangla
    • C# Programming Language
    • C++ language
    • Competitive Exam
    • Complete Data Structures Mastery Course: Beginner to Advanced with Real-World Examples
    • Computer Awareness
    • Computer Fundamentals
    • Computer Network
    • Computer Science - 10 Years Solved Papers ISC Class XII
    • Computer Science and Engineering
    • Continuous Deployment
    • Continuous Integration
    • CSS
    • Current Affairs
    • Database Management System
    • Digital Logic
    • Digital Productivity
    • Education
    • Electrical Engineering
    • English
    • English Grammar
    • General Aptitude
    • Geography
    • History
    • HTML 5
    • ICSE Class 8 Computer Studies (Latest CISCE Syllabus)
    • Important Days and Dates
    • Interview Questions
    • ISC - COMPUTER SCIENCE - XI
    • Islam
    • Java Programming Language
    • JavaScript
    • Leadership Behavior, Culture, and Communication for Team Leads
    • Leadership Communication for Agile and IT Delivery Teams
    • Logical Fallacy
    • Machine Learning
    • Mastering HTML: From Fundamentals to Advanced Concepts
    • Mathematics
    • Mathematics for Programming
    • Mathematics in Bangla - Class 5
    • MB-310: Microsoft Certified: Dynamics 365 Finance Functional Consultant Associate
    • MB-330: Microsoft Certified: Dynamics 365 Supply Chain Management Functional Consultant Associate
    • MB-700: Microsoft Dynamics 365: Finance and Operations Apps Solution Architect
    • MB-920: Microsoft Dynamics 365 Fundamentals (ERP)
    • Microservices Architecture
    • Microsoft Azure
    • Microsoft Excel - Bangla
    • Microsoft Power Platform Mastery (Power BI + Power Apps + Power Automate + Copilot + Dataverse)
    • Mindwork games
    • Miscellaneous Topics
    • Misconceptions about Islam
    • Neural Networks and Deep Learning
    • NPM - Package Manager
    • Pakistan Geography
    • Photoshop
    • PHP
    • Programming Language
    • Prompt Engineering
    • Puzzles
    • Python Programming Language
    • R Programming Language
    • ReactJS
    • Science
    • Scrum Master Complete Bootcamp: From Beginner to Professional
    • Social Science
    • SQL
    • SQLite
    • Tamil Nadu State board (Class 10)
    • Technical MCQs
    • Technical Short Answers
    • TypeScript - JavaScript's Superset
    • User Experience
    • Verbal and Reasoning
    • Vue JS
    • WB Gram Panchayat Exam Complete Preparation Course - পশ্চিমবঙ্গ গ্রাম পঞ্চায়েত সম্পূর্ণ প্রস্তুতি কোর্স
    • অতীত ও ঐতিহ্য: অষ্টম শ্রেণীর: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
    • অর্থনীতি
    • আরবী ভাষা কোর্স - Diploma in Arabic language
    • ইতিহাস
    • ইতিহাস ও পরিবেশ: দশম শ্রেণি: পশ্চিমবঙ্গ মধ্যশিক্ষা পর্ষদ
    • ইসলামিক বই
    • ইসলামে আকীকা
    • ইসলামে নারী
    • এসো আরবী শিখি
    • কুরআন
    • খাদ্য, পুষ্টি ও খাদ্যের উপাদান
    • জীবনবিজ্ঞান ও পরিবেশ (দশম)
    • তাহারাত কুইজ প্রতিযোগিতা
    • নবীদের কাহিনী - The story of the prophets
    • পরিবেশ ও বিজ্ঞান
    • পশ্চিমবঙ্গ মধ্যশিক্ষা / উচ্চ মাধ্যমিক শিক্ষা সংসদ: বই PDF
    • প্যারেন্টিং - Parenting
    • প্রচলিত ভুল বিষয়ে প্রতিযোগিতা টেস্ট কুইজ
    • প্রশ্নোত্তরে ইসলামী জ্ঞান
    • বাংলা ইসলামিক কুইজ - Bangla Islamic Quiz
    • বাংলা সাহিত্য
    • ব্যক্তিগত উন্নয়ন (Personal Development)
    • ভূগোল
    • মডার্ন কম্পিউটার অ্যাপ্লিকেশন ও কম্পিউটার বিজ্ঞান - একাদশ শ্রেণী (Class 11) - WBCHSE
    • মডার্ন কম্পিউটার অ্যাপ্লিকেশন ও কম্পিউটার বিজ্ঞান - দ্বাদশ শ্রেণী (Class 12) - WBCHSE
    • লেখক এবং কবি
    • শয়তান পরিচিতি
    • সংক্ষিপ্ত জীবনী
    • সাধারণ জ্ঞান
    • সাহাবীদের জীবনী
    • সীরাত প্রতিযোগিতার প্রশ্ন ও উত্তরসমূহ
  • Login
    • Login with Email
Home› Java Programming Language› ICSE Computer Application - Class - X› Consider the following class: public class myClass …
✏️ Explanatory Question

Consider the following class:

public class myClass {
public static int x=3, y=4;
public int a=2, b=3;}
  1. Name the variables for which each object of the class will have its own distinct copy.
  2. Name the variables that are common to all objects of the class.

👁 98 Views
📘 Detailed Answer
🟢 Easy
← Previous Study the method and answer the given questions. public void sampleMethod() { for (int i=0; i < 3; i++) { for (int j = 0; j Next → What will be the output when the following code segments are executed? (i) String s = "1001"; int x = Integer.valueOf(s); double y = Double.valueOf(s); System.out.println("x="+x); System.out.println("y="+y); (ii) System.out.println("The king said \"Begin at the beginning!\" to me.");
💡

Answer with Explanation

  1. a, b
  2. x, y
← Previous Study the method and answer the given questions. public void sampleMethod() { for (int i=0; i < 3; i++) { for (int j = 0; j Next → What will be the output when the following code segments are executed? (i) String s = "1001"; int x = Integer.valueOf(s); double y = Double.valueOf(s); System.out.println("x="+x); System.out.println("y="+y); (ii) System.out.println("The king said \"Begin at the beginning!\" to me.");
📌 Topic Information
Subject Java Programming Language
Chapter ICSE Computer Application - Class - X
Sub-Chapter ICSE Computer Application - Class X - 2014 PYQ
Published 08 Sep 2024

Related Questions

More questions from the same topic.
1
Which of the following are valid comments ? /*comment*/ /*comment //comment */comment*/
2
What is meant by a package ? Name any two java Application Programming Interface packages.
3
Name the primitive data type in Java that is: a 64-bit integer and is used when you need a range of values wider than those provided by int. a single 16-bit Unicode character whose default value is '\u0000'.
4
State one difference between the floating point literals float and double.
5
Find the errors in the given program segment and re-write the statements correctly to assign values to an integer array. int a = new int (5); for (int i=0; i
6
Operators with higher precedence are evaluated before operators with relatively lower precedence. Arrange the operators given below in order of higher precedence to lower precedence: && % >= ++
7
Identify the statements listed below as assignment, increment, method invocation or object creation statements. System.out.println("Java"); costPrice = 457.50; Car hybrid = new Car(); petrolPrice++;
8
Give two differences between the switch statement and the if-else statement
9
What is an infinite loop? Write an infinite loop statement.
10
hat is constructor? When is it invoked?

About RummanAnsari

Your go-to platform for online courses, GK, blogs, and learning resources.

Quick Links

  • Home
  • Blog
  • Topic
  • Courses

Courses

  • Free Courses
  • Paid Courses

Connect with Us

© 2026 RummanAnsari. All rights reserved.

About Privacy Terms